C# Class spaceconquest.Player

显示文件 Open project: cclay/spaceconquest Class Usage Examples

Public Properties

Property Type Description
army HashSet
color Color
id int
playerIDs int
startingPlanet Planet

Public Methods

Method Description
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

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Player() public method

public Player ( Planet start, String n ) : System
start Planet
n String
return System

getMetal() public method

public getMetal ( ) : int
return int

getName() public method

public getName ( ) : String
return String

giveMetal() public method

public giveMetal ( int x ) : void
x int
return void

payMetal() public method

public payMetal ( int cost ) : System.Boolean
cost int
return System.Boolean

Property Details

army public_oe property

public HashSet army
return HashSet

color public_oe property

public Color color
return Color

id public_oe property

public int id
return int

playerIDs public_oe static_oe property

public static int playerIDs
return int

startingPlanet public_oe property

public Planet,spaceconquest startingPlanet
return Planet