vooga.engine.collision
Class GoldenTCollisionManager

java.lang.Object
  extended by vooga.engine.collision.CollisionManager
      extended by vooga.engine.collision.GoldenTCollisionManager

public class GoldenTCollisionManager
extends CollisionManager

Makes the Collision Manager work with GoldenT, takes two Collidable CollisionShape objects as parameters for the detect detection.


Constructor Summary
GoldenTCollisionManager()
           
 
Method Summary
 boolean detectCollision(Collidable object1, Collidable object2)
          Detects collision between object1 and object2, must be implemented in the subclass.
 
Methods inherited from class vooga.engine.collision.CollisionManager
act, collides, collides, collides, collides, processBorders, processBorders, processBottomBorder, processLeftBorder, processRightBorder, processTopBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoldenTCollisionManager

public GoldenTCollisionManager()
Method Detail

detectCollision

public boolean detectCollision(Collidable object1,
                               Collidable object2)
Description copied from class: CollisionManager
Detects collision between object1 and object2, must be implemented in the subclass. It is up to the game designer to determine how to write a collision detection algorithm that is fit of the game he/she is trying to create in terms of efficiency and precision

Parameters:
object1 - an object that implements the interface Collidable
object2 - an object that implements the interface Collidable
Returns:
true if a collision is detected