C# Class Ether, evosim

Inheritance: MonoBehaviour
Show file Open project: clomax/evosim Class Usage Examples

Public Properties

Property Type Description
container GameObject
energy double
instance Ether,
total_energy double

Public Methods

Method Description
enoughEnergy ( double n ) : bool
getEnergy ( ) : double
getFoodbitCount ( ) : int
getInstance ( ) : Ether,
newFoodbit ( Vector3 pos ) : void
removeFoodbit ( GameObject fb ) : void
subtractEnergy ( double n ) : void

Private Methods

Method Description
Start ( ) : void
fbSpawn ( ) : void

Method Details

enoughEnergy() public method

public enoughEnergy ( double n ) : bool
n double
return bool

getEnergy() public method

public getEnergy ( ) : double
return double

getFoodbitCount() public method

public getFoodbitCount ( ) : int
return int

getInstance() public static method

public static getInstance ( ) : Ether,
return Ether,

newFoodbit() public method

public newFoodbit ( Vector3 pos ) : void
pos Vector3
return void

removeFoodbit() public method

public removeFoodbit ( GameObject fb ) : void
fb GameObject
return void

subtractEnergy() public method

public subtractEnergy ( double n ) : void
n double
return void

Property Details

container public static property

public static GameObject container
return GameObject

energy public property

public double energy
return double

instance public static property

public static Ether, instance
return Ether,

total_energy public property

public double total_energy
return double