Packages

case class CircularBorder(levelCenter: Point, collisionRule: mvc.controller.levels.structure.CollisionRules.Value, levelRadius: Double) extends AbstractBorder with Product with Serializable

Collision implementation for a playing field with circular shape

Linear Supertypes
Serializable, Serializable, Product, Equals, AbstractBorder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CircularBorder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AbstractBorder
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

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

    Definition Classes
    AbstractBorder
  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

    Definition Classes
    AbstractBorder
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. val collisionRule: mvc.controller.levels.structure.CollisionRules.Value
  9. 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
    Definition Classes
    CircularBorderAbstractBorder
  10. 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
    Definition Classes
    CircularBorderAbstractBorder
  11. 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
    Definition Classes
    CircularBorderAbstractBorder
  12. var currentPosition: Point
    Attributes
    protected
    Definition Classes
    AbstractBorder
  13. var dimensionComponent: DimensionComponent
    Attributes
    protected
    Definition Classes
    AbstractBorder
  14. var entityRadius: Double
    Attributes
    protected
    Definition Classes
    AbstractBorder
  15. var entitySpeed: Vector
    Attributes
    protected
    Definition Classes
    AbstractBorder
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. 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
    Definition Classes
    CircularBorderAbstractBorder
  20. 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
    Definition Classes
    CircularBorderAbstractBorder
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val levelCenter: Point
  23. val levelRadius: Double
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. var positionComponent: PositionComponent
    Attributes
    protected
    Definition Classes
    AbstractBorder
  28. 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
    Definition Classes
    CircularBorderAbstractBorder
  29. val restitution: Double
    Attributes
    protected
    Definition Classes
    AbstractBorder
  30. var speedComponent: SpeedComponent
    Attributes
    protected
    Definition Classes
    AbstractBorder
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AbstractBorder

Inherited from AnyRef

Inherited from Any

Ungrouped