vooga.games.grandius.collisions
Class PlayerBossCollision

java.lang.Object
  extended by BasicCollisionGroup
      extended by vooga.games.grandius.collisions.BasicCollision
          extended by vooga.games.grandius.collisions.PlayerBossCollision

public class PlayerBossCollision
extends BasicCollision

This class takes care of collisions between the player and a Boss. An instance of this class needs to be added to the playfield using the playfield's addCollisionGroup method. Once this is done,the playfield checks for a collision between the player and an enemy every time the playfield is updated.


Field Summary
 
Fields inherited from class vooga.games.grandius.collisions.BasicCollision
myGame
 
Constructor Summary
PlayerBossCollision(Game grandius)
           
 
Method Summary
 void collided(Sprite playerSprite, Sprite enemy)
           
 
Methods inherited from class vooga.games.grandius.collisions.BasicCollision
getPlayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerBossCollision

public PlayerBossCollision(Game grandius)
Method Detail

collided

public void collided(Sprite playerSprite,
                     Sprite enemy)
Overrides:
collided in class BasicCollision