C# Class Battlefield.Logic.Players.Player

A player class
Inheritance: IPlayer
Exibir arquivo Open project: kiko81/HQC---Battle-Field-4-TeamWork Class Usage Examples

Public Methods

Method Description
Player ( string name, IField field, IInput input ) : System

Constructor for initialization of plyers.

TakeAShot ( ) : int

Player shoots in playfield

Method Details

Player() public method

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.
return System

TakeAShot() public method

Player shoots in playfield
public TakeAShot ( ) : int
return int