C# 클래스 spaceconquest.Player

파일 보기 프로젝트 열기: cclay/spaceconquest 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
army HashSet
color Color
id int
playerIDs int
startingPlanet Planet

공개 메소드들

메소드 설명
Equals ( object obj ) : bool
GetHashCode ( ) : int
Player ( Planet start, String n ) : System
getMetal ( ) : int
getName ( ) : String
giveMetal ( int x ) : void
payMetal ( int cost ) : System.Boolean

메소드 상세

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Player() 공개 메소드

public Player ( Planet start, String n ) : System
start Planet
n String
리턴 System

getMetal() 공개 메소드

public getMetal ( ) : int
리턴 int

getName() 공개 메소드

public getName ( ) : String
리턴 String

giveMetal() 공개 메소드

public giveMetal ( int x ) : void
x int
리턴 void

payMetal() 공개 메소드

public payMetal ( int cost ) : System.Boolean
cost int
리턴 System.Boolean

프로퍼티 상세

army 공개적으로 프로퍼티

public HashSet army
리턴 HashSet

color 공개적으로 프로퍼티

public Color color
리턴 Color

id 공개적으로 프로퍼티

public int id
리턴 int

playerIDs 공개적으로 정적으로 프로퍼티

public static int playerIDs
리턴 int

startingPlanet 공개적으로 프로퍼티

public Planet,spaceconquest startingPlanet
리턴 Planet