Property | Type | Description | |
---|---|---|---|
playerColor | Color | ||
playerHandler | PlayerHandler | ||
playerId | int | ||
spaceship | Spaceship |
Method | Description | |
---|---|---|
Player ( ) : System | ||
Player ( int playerId, PlayerHandler playerHandler, Color playerColor ) : System |
Creates a player.
|
|
Update ( FrameState frameState ) : void |
This method is being called for every frame of the game. It updates the player's behaviour.
|
public Player ( int playerId, PlayerHandler playerHandler, Color playerColor ) : System | ||
playerId | int | The player's ID. |
playerHandler | PlayerHandler | The player's Handler. |
playerColor | Color | The player's color. |
return | System |
public abstract Update ( FrameState frameState ) : void | ||
frameState | FrameState | frame specific state |
return | void |