Свойство | Type | Description | |
---|---|---|---|
playerColor | Color | ||
playerHandler | PlayerHandler | ||
playerId | int | ||
spaceship | Spaceship |
Méthode | 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. |
Résultat | System |
public abstract Update ( FrameState frameState ) : void | ||
frameState | FrameState | frame specific state |
Résultat | void |