|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBasicCollisionGroup
vooga.games.grandius.collisions.BasicCollision
vooga.games.grandius.collisions.PlayerBossCollision
public class PlayerBossCollision
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 |
---|
public PlayerBossCollision(Game grandius)
Method Detail |
---|
public void collided(Sprite playerSprite, Sprite enemy)
collided
in class BasicCollision
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |