View Javadoc
1   package com.jed.actor;
2   
3   import com.jed.util.Vector2f;
4   
5   /**
6    *
7    * Abstract class identical to {@link com.jed.actor.AbstractEntity} except for the addition of
8    * {@link com.jed.actor.PhysicsEntity#mass()}.
9    * 
10   * @author jlinde, Peter Colapietro
11   * @since 0.1.0
12   *
13   */
14  abstract class PhysicsEntity extends AbstractEntity {
15  
16      /**
17       * 
18       * @param position position vector.
19       * @param movement movement vector.
20       * @param bounds bounds of entity.
21       */
22      PhysicsEntity(Vector2f position, Vector2f movement, Boundary bounds) {
23          super(position, movement, bounds);
24      }
25  
26      /**
27       * 
28       * @return mass
29       */
30      public abstract double mass();
31  
32  }