C# Class Battlefield.Logic.Players.Player

A player class
Inheritance: IPlayer
Afficher le fichier Open project: kiko81/HQC---Battle-Field-4-TeamWork Class Usage Examples

Méthodes publiques

Méthode Description
Player ( string name, IField field, IInput input ) : System

Constructor for initialization of plyers.

TakeAShot ( ) : int

Player shoots in playfield

Method Details

Player() public méthode

Constructor for initialization of plyers.
public Player ( string name, IField field, IInput input ) : System
name string Name of the player.
field IField The player's playfield.
input IInput Input object for receiving commands.
Résultat System

TakeAShot() public méthode

Player shoots in playfield
public TakeAShot ( ) : int
Résultat int