moagg.game.control.collision
Class AbstractCollisionHandler
java.lang.Object
moagg.game.control.collision.AbstractCollisionHandler
- All Implemented Interfaces:
- CollisionHandler
- Direct Known Subclasses:
- MultiPlayerCollisionHandler, SinglePlayerCollisionHandler
public abstract class AbstractCollisionHandler
- extends java.lang.Object
- implements CollisionHandler
This class is capable of handling the collisions common to all game types.
More special collision scenarios are delegated to abstract methods
to be implemented by special collision handlers related to the different game types.
Method Summary |
void |
onDestroyablePlaygroundCollision(DestroyableObject destroyable)
|
void |
onObjectObjectCollision(MoaggGameObject object1,
MoaggGameObject object2)
|
void |
onObjectPlaygroundCollision(MoaggGameObject object)
|
void |
onParticlePlaygroundCollision(Particle particle)
|
void |
onShipBonusCrateCollision(Ship ship,
Crate crate)
|
void |
onShipCargoCrateCollision(Ship ship,
Crate crate)
|
void |
onShipCrateCollision(Ship ship,
Crate crate)
|
void |
onShipDestroyableCollision(Ship ship,
DestroyableObject destroyable)
|
void |
onShipFuelCrateCollision(Ship ship,
Crate crate)
|
void |
onShipObjectCollision(Ship ship,
MoaggGameObject object)
|
void |
onShipParticleCollision(Ship ship,
Particle particle)
|
void |
onShipPlatformCollision(Ship ship,
Platform platform)
|
void |
onShipPlaygroundCollision(Ship ship)
|
void |
onShipShipCollision(Ship ship1,
Ship ship2)
|
void |
onShipShootableCollision(Ship ship,
ShootableObject shootable)
|
void |
onShipUnknownObjectCollision(Ship ship,
MoaggGameObject object)
|
void |
onShipWeaponCrateCollision(Ship ship,
Crate crate)
|
void |
onShipWeaponDecoratorCrateCollision(Ship ship,
Crate crate)
|
void |
onShootableCrateCollision(ShootableObject shootable,
Crate crate)
|
void |
onShootableDestroyableCollision(ShootableObject shootable,
DestroyableObject destroyable)
|
void |
onShootableObjectCollision(ShootableObject shootable,
MoaggGameObject object)
|
void |
onShootableShootableCollision(ShootableObject shootable1,
ShootableObject shootable2)
|
void |
onShootableSwitchCollision(ShootableObject shootable,
Switch s)
|
void |
onShootableUnknownObjectCollision(ShootableObject shootable,
MoaggGameObject object)
|
protected void |
updateShipWeapon(Ship ship,
Weapon weapon)
|
protected void |
updateShipWeaponDecorator(Ship ship,
WeaponDecorator weaponDecorator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.log4j.Logger log
gameControl
protected InternalGameControl gameControl
AbstractCollisionHandler
protected AbstractCollisionHandler(InternalGameControl gameControl)
onObjectPlaygroundCollision
public void onObjectPlaygroundCollision(MoaggGameObject object)
- Specified by:
onObjectPlaygroundCollision
in interface CollisionHandler
onObjectObjectCollision
public void onObjectObjectCollision(MoaggGameObject object1,
MoaggGameObject object2)
- Specified by:
onObjectObjectCollision
in interface CollisionHandler
onParticlePlaygroundCollision
public void onParticlePlaygroundCollision(Particle particle)
onDestroyablePlaygroundCollision
public void onDestroyablePlaygroundCollision(DestroyableObject destroyable)
onShipPlaygroundCollision
public void onShipPlaygroundCollision(Ship ship)
onShipObjectCollision
public void onShipObjectCollision(Ship ship,
MoaggGameObject object)
onShipCrateCollision
public void onShipCrateCollision(Ship ship,
Crate crate)
onShipCargoCrateCollision
public void onShipCargoCrateCollision(Ship ship,
Crate crate)
onShipBonusCrateCollision
public void onShipBonusCrateCollision(Ship ship,
Crate crate)
onShipFuelCrateCollision
public void onShipFuelCrateCollision(Ship ship,
Crate crate)
onShipWeaponCrateCollision
public void onShipWeaponCrateCollision(Ship ship,
Crate crate)
updateShipWeapon
protected void updateShipWeapon(Ship ship,
Weapon weapon)
onShipWeaponDecoratorCrateCollision
public void onShipWeaponDecoratorCrateCollision(Ship ship,
Crate crate)
updateShipWeaponDecorator
protected void updateShipWeaponDecorator(Ship ship,
WeaponDecorator weaponDecorator)
onShipShipCollision
public void onShipShipCollision(Ship ship1,
Ship ship2)
onShipParticleCollision
public void onShipParticleCollision(Ship ship,
Particle particle)
onShipShootableCollision
public void onShipShootableCollision(Ship ship,
ShootableObject shootable)
onShipDestroyableCollision
public void onShipDestroyableCollision(Ship ship,
DestroyableObject destroyable)
onShipPlatformCollision
public void onShipPlatformCollision(Ship ship,
Platform platform)
onShipUnknownObjectCollision
public void onShipUnknownObjectCollision(Ship ship,
MoaggGameObject object)
onShootableObjectCollision
public void onShootableObjectCollision(ShootableObject shootable,
MoaggGameObject object)
onShootableSwitchCollision
public void onShootableSwitchCollision(ShootableObject shootable,
Switch s)
onShootableCrateCollision
public void onShootableCrateCollision(ShootableObject shootable,
Crate crate)
onShootableShootableCollision
public void onShootableShootableCollision(ShootableObject shootable1,
ShootableObject shootable2)
onShootableDestroyableCollision
public void onShootableDestroyableCollision(ShootableObject shootable,
DestroyableObject destroyable)
onShootableUnknownObjectCollision
public void onShootableUnknownObjectCollision(ShootableObject shootable,
MoaggGameObject object)
Copyright © 2008. All Rights Reserved.