C# 클래스 EtherDuels.Game.Model.Player

Defines an abstract player in the game.
파일 보기 프로젝트 열기: julius/pse_spacewar 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
playerColor Color
playerHandler PlayerHandler
playerId int
spaceship Spaceship

공개 메소드들

메소드 설명
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.

메소드 상세

Player() 공개 메소드

public Player ( ) : System
리턴 System

Player() 공개 메소드

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

Update() 공개 추상적인 메소드

This method is being called for every frame of the game. It updates the player's behaviour.
public abstract Update ( FrameState frameState ) : void
frameState FrameState frame specific state
리턴 void

프로퍼티 상세

playerColor 보호되어 있는 프로퍼티

protected Color playerColor
리턴 Color

playerHandler 보호되어 있는 프로퍼티

protected PlayerHandler playerHandler
리턴 PlayerHandler

playerId 보호되어 있는 프로퍼티

protected int playerId
리턴 int

spaceship 보호되어 있는 프로퍼티

protected Spaceship spaceship
리턴 Spaceship