C# Class spaceconquest.Unit

Inheritance: GameObject
Show file Open project: cclay/spaceconquest Class Usage Examples

Protected Properties

Property Type Description
affiliation Player
buildCost int
buildTime int
health int
hitthisturn bool
maxHealth int

Public Methods

Method Description
Unit ( ) : System
Unit ( Player p ) : System
getAffiliation ( ) : Player
getCost ( ) : int
getHealth ( ) : int
getMaxHealth ( ) : int
getTime ( ) : int
hit ( int damage ) : void
kill ( ) : void
setAffiliation ( Player p ) : void
setHealth ( int h ) : void
setMaxHealth ( int mh ) : void
upkeep ( ) : void

Method Details

Unit() public method

public Unit ( ) : System
return System

Unit() public method

public Unit ( Player p ) : System
p Player
return System

getAffiliation() public method

public getAffiliation ( ) : Player
return Player

getCost() public method

public getCost ( ) : int
return int

getHealth() public method

public getHealth ( ) : int
return int

getMaxHealth() public method

public getMaxHealth ( ) : int
return int

getTime() public method

public getTime ( ) : int
return int

hit() public method

public hit ( int damage ) : void
damage int
return void

kill() public abstract method

public abstract kill ( ) : void
return void

setAffiliation() public method

public setAffiliation ( Player p ) : void
p Player
return void

setHealth() public method

public setHealth ( int h ) : void
h int
return void

setMaxHealth() public method

public setMaxHealth ( int mh ) : void
mh int
return void

upkeep() public method

public upkeep ( ) : void
return void

Property Details

affiliation protected property

protected Player,spaceconquest affiliation
return Player

buildCost protected property

protected int buildCost
return int

buildTime protected property

protected int buildTime
return int

health protected property

protected int health
return int

hitthisturn protected property

protected bool hitthisturn
return bool

maxHealth protected property

protected int maxHealth
return int