C# Class spaceconquest.Player

Afficher le fichier Open project: cclay/spaceconquest Class Usage Examples

Méthodes publiques

Свойство Type Description
army HashSet
color Color
id int
playerIDs int
startingPlanet Planet

Méthodes publiques

Méthode 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 méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Player() public méthode

public Player ( Planet start, String n ) : System
start Planet
n String
Résultat System

getMetal() public méthode

public getMetal ( ) : int
Résultat int

getName() public méthode

public getName ( ) : String
Résultat String

giveMetal() public méthode

public giveMetal ( int x ) : void
x int
Résultat void

payMetal() public méthode

public payMetal ( int cost ) : System.Boolean
cost int
Résultat System.Boolean

Property Details

army public_oe property

public HashSet army
Résultat HashSet

color public_oe property

public Color color
Résultat Color

id public_oe property

public int id
Résultat int

playerIDs public_oe static_oe property

public static int playerIDs
Résultat int

startingPlanet public_oe property

public Planet,spaceconquest startingPlanet
Résultat Planet