Метод | Описание | |
---|---|---|
GameModel ( ShortLifespanObjectFactory factory, Physics physics, List |
Creates a new GameModel object.
|
|
GetFactory ( ) : ShortLifespanObjectFactory |
Returns the assigned ShortLifespanObjectFactory.
|
|
RemovePlayer ( |
Removes the assigned player from the list of players.
|
|
Update ( FrameState frameState ) : void |
Updates the physics and all players.
|
public GameModel ( ShortLifespanObjectFactory factory, Physics physics, List |
||
factory | ShortLifespanObjectFactory | The assigned ShortLifespanObjectFactory to create new WorldObjects. |
physics | Physics | The assigned Physics to calculate new positions. |
players | List |
An array of all participating players. |
world | World | The assigned World. |
Результат | System |
public GetFactory ( ) : ShortLifespanObjectFactory | ||
Результат | ShortLifespanObjectFactory |
public RemovePlayer ( |
||
player | The player which has to be removed. | |
Результат | void |
public Update ( FrameState frameState ) : void | ||
frameState | FrameState | A state object which contains how much time has passed since the last update. |
Результат | void |