C# Class SnakeBattleNet.Core.Prototypes.BattleSnake

Represents a snake on a battle field.
Afficher le fichier Open project: FoC-/SnakeBattle.Net Class Usage Examples

Méthodes publiques

Méthode Description
BattleSnake ( Snake snake, IMind mind ) : System

Initializes a new instance of the BattleSnake class.

Move ( ) : void

Private Methods

Méthode Description
Bite ( BattleSnake snakeToBite ) : void
MakeLonger ( ) : void
MoveBodyTo ( dynamic moveDirection ) : void
PutOnBattleField ( BattleField battleField ) : void
Shorten ( ) : void

Method Details

BattleSnake() public méthode

Initializes a new instance of the BattleSnake class.
public BattleSnake ( Snake snake, IMind mind ) : System
snake Snake
mind IMind
Résultat System

Move() public méthode

public Move ( ) : void
Résultat void