Method | Description | |
---|---|---|
SimplePhysicsAlgorithm ( CollisionHandler collisionHandler, World world, ConfigurationRetriever configRetriever ) : System |
Creates a new SimplePhysicsAlgorithm object.
|
|
Update ( |
Updates gravity effects, calculates the new positions of all world objects and then reports all new collisions to the collisionHandler.
|
Method | Description | |
---|---|---|
GetCollisions ( ) : EtherDuels.Game.Model.WorldObject[][] | ||
GetNewCollisions ( ) : EtherDuels.Game.Model.WorldObject[][] | ||
UpdateDifficulty ( ) : void | ||
UpdateExplosions ( |
||
UpdateGravity ( |
||
UpdatePositions ( |
public SimplePhysicsAlgorithm ( CollisionHandler collisionHandler, World world, ConfigurationRetriever configRetriever ) : System | ||
collisionHandler | CollisionHandler | The assigned CollisionHandler which will be informed about collisions. |
world | World | The assigned World whose objects are to be updated. |
configRetriever | ConfigurationRetriever | |
return | System |
public Update ( |
||
gameTime | The GameTime which contains how much time has passed since the last update. | |
return | void |