View Javadoc
1   package org.colapietro.lwjgl.physics;
2   
3   import com.jed.actor.AbstractEntity;
4   import org.colapietro.lang.NotImplementedException;
5   
6   /**
7    * Created by Peter Colapietro on 11/22/14.
8    *
9    * @author Peter Colapietro
10   * @since 0.1.8
11   */
12  public interface Collidable {
13  
14      /**
15       *
16       * @param entity to collide down with.
17       * @throws NotImplementedException NotImplementedException
18       */
19      void collideDown(AbstractEntity entity) throws NotImplementedException;
20  
21      /**
22       *
23       * @param entity to collide up with.
24       * @throws NotImplementedException NotImplementedException
25       */
26      void collideUp(AbstractEntity entity) throws NotImplementedException;
27  
28      /**
29       *
30       * @param entity to collide left with.
31       * @throws NotImplementedException NotImplementedException
32       */
33      void collideLeft(AbstractEntity entity) throws NotImplementedException;
34  
35      /**
36       *
37       * @param entity to collide right with.
38       * @throws NotImplementedException NotImplementedException
39       */
40      void collideRight(AbstractEntity entity) throws NotImplementedException;
41  }