Packages

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

Collision implementation for a playing field with rectangular shape

Linear Supertypes
Serializable, Serializable, Product, Equals, AbstractBorder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RectangularBorder
  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 RectangularBorder(levelCenter: Point, collisionRule: mvc.controller.levels.structure.CollisionRules.Value, base: Double, height: Double)

Value Members

  1. val base: Double
  2. 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
  3. 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
  4. val collisionRule: mvc.controller.levels.structure.CollisionRules.Value
  5. val height: Double
  6. val levelCenter: Point