Packages

abstract class AbstractBorder extends AnyRef

Abstract class implementing the border collision strategy

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractBorder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractBorder(levelCenter: Point, collisionRule: mvc.controller.levels.structure.CollisionRules.Value)

    levelCenter

    center of the level

    collisionRule

    the collision rule

Abstract Value Members

  1. abstract def computeNewPosition(): Point

    Takes inside the playable field an entity that was outside

    Takes inside the playable field an entity that was outside

    returns

    the entity position after bounce

    Attributes
    protected
  2. abstract def computeNewRadius(): Double

    Returns the entity radius minus the radius portion outside the level borders

    Returns the entity radius minus the radius portion outside the level borders

    returns

    the entity radius after the operations

    Attributes
    protected
  3. abstract def computeNewSpeed(newPosition: Point): Vector

    Computes the new speed direction after colliding with the border

    Computes the new speed direction after colliding with the border

    newPosition

    the entity position computed at computeNewPosition()

    returns

    the entity speed after bounce

    Attributes
    protected
  4. abstract def hasCollidedWithBorder: Boolean

    Returns true if collision with border has happened

    Returns true if collision with border has happened

    returns

    true if collision with border has happened

    Attributes
    protected
  5. abstract def reposition(): Unit

    Repositions an entity (outside the map) to a legal position as close as possible to the map's edge

    Repositions an entity (outside the map) to a legal position as close as possible to the map's edge

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkAndSolveCollision(entity: CollidableProperty): Unit

    Checks if an entity has collided with the border.

    Checks if an entity has collided with the border. If so, computes it's new position and speed.

    entity

    the entity to check

  6. def checkIfOutsideMap(entity: CollidableProperty): Unit

    Checks if an entity is outside of the playable field.

    Checks if an entity is outside of the playable field. If so, repositions it inside the playable field. Used after collision between entities check.

    entity

    the entity to check

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. var currentPosition: Point
    Attributes
    protected
  9. var dimensionComponent: DimensionComponent
    Attributes
    protected
  10. var entityRadius: Double
    Attributes
    protected
  11. var entitySpeed: Vector
    Attributes
    protected
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def initCollisionParameters(entity: CollidableProperty): Unit

    Initializes the current entity's fundamental parameters to perform border collision operations

    Initializes the current entity's fundamental parameters to perform border collision operations

    entity

    the current entity

    Attributes
    protected
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. var positionComponent: PositionComponent
    Attributes
    protected
  23. val restitution: Double
    Attributes
    protected
  24. var speedComponent: SpeedComponent
    Attributes
    protected
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped