C# 클래스 Battlefield.Logic.Players.Player

A player class
상속: IPlayer
파일 보기 프로젝트 열기: kiko81/HQC---Battle-Field-4-TeamWork 1 사용 예제들

공개 메소드들

메소드 설명
Player ( string name, IField field, IInput input ) : System

Constructor for initialization of plyers.

TakeAShot ( ) : int

Player shoots in playfield

메소드 상세

Player() 공개 메소드

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.
리턴 System

TakeAShot() 공개 메소드

Player shoots in playfield
public TakeAShot ( ) : int
리턴 int