C# Class Units, RTSmini

Inheritance: MonoBehaviour
Show file Open project: Arihy/RTSmini Class Usage Examples

Public Properties

Property Type Description
floorOffset float
mouseSpriteMove GameObject
selected bool
team int

Protected Properties

Property Type Description
attackFrequency int
attackStrength float
destination Vector3
distanceAttack float
distancePercept float
env Environnement,
initialVectorScale Vector3
speed float
stopDistanceOffset float

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
destroy ( ) : void
getAttackFrequency ( ) : int
getAttackStrength ( ) : float
getDestination ( ) : Vector3
getDistanceAttack ( ) : float
getDistancePercept ( ) : float
getEnergy ( ) : float
getEnergyMax ( ) : float
getEnv ( ) : Environnement,
getId ( ) : int
getNbFrameSinceLastShot ( ) : int
getProximityEnemies ( ) : List
getProximityProds ( ) : List
getProximityTriangleProds ( ) : List
getSpeed ( ) : float
getStopDistanceOffset ( ) : float
getTeam ( ) : int
goTo ( Vector3 dest ) : void
mustDie ( ) : bool
reduceEnergy ( float dmg ) : void
setDestination ( Vector3 dest ) : void
setId ( int newId ) : void
setNbFrameSinceLastShot ( int newNbFrame ) : void
setTeam ( int newTeam ) : void

Protected Methods

Method Description
computeUnityScale ( ) : void
setInitialEnergy ( float newenergy ) : void

Private Methods

Method Description
OnMouseDown ( ) : void
OnMouseUp ( ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

computeUnityScale() protected method

protected computeUnityScale ( ) : void
return void

destroy() public method

public destroy ( ) : void
return void

getAttackFrequency() public method

public getAttackFrequency ( ) : int
return int

getAttackStrength() public method

public getAttackStrength ( ) : float
return float

getDestination() public method

public getDestination ( ) : Vector3
return Vector3

getDistanceAttack() public method

public getDistanceAttack ( ) : float
return float

getDistancePercept() public method

public getDistancePercept ( ) : float
return float

getEnergy() public method

public getEnergy ( ) : float
return float

getEnergyMax() public method

public getEnergyMax ( ) : float
return float

getEnv() public method

public getEnv ( ) : Environnement,
return Environnement,

getId() public method

public getId ( ) : int
return int

getNbFrameSinceLastShot() public method

public getNbFrameSinceLastShot ( ) : int
return int

getProximityEnemies() public method

public getProximityEnemies ( ) : List
return List

getProximityProds() public method

public getProximityProds ( ) : List
return List

getProximityTriangleProds() public method

public getProximityTriangleProds ( ) : List
return List

getSpeed() public method

public getSpeed ( ) : float
return float

getStopDistanceOffset() public method

public getStopDistanceOffset ( ) : float
return float

getTeam() public method

public getTeam ( ) : int
return int

goTo() public method

public goTo ( Vector3 dest ) : void
dest Vector3
return void

mustDie() public method

public mustDie ( ) : bool
return bool

reduceEnergy() public method

public reduceEnergy ( float dmg ) : void
dmg float
return void

setDestination() public method

public setDestination ( Vector3 dest ) : void
dest Vector3
return void

setId() public method

public setId ( int newId ) : void
newId int
return void

setInitialEnergy() protected method

protected setInitialEnergy ( float newenergy ) : void
newenergy float
return void

setNbFrameSinceLastShot() public method

public setNbFrameSinceLastShot ( int newNbFrame ) : void
newNbFrame int
return void

setTeam() public method

public setTeam ( int newTeam ) : void
newTeam int
return void

Property Details

attackFrequency protected property

protected int attackFrequency
return int

attackStrength protected property

protected float attackStrength
return float

destination protected property

protected Vector3 destination
return Vector3

distanceAttack protected property

protected float distanceAttack
return float

distancePercept protected property

protected float distancePercept
return float

env protected property

protected Environnement, env
return Environnement,

floorOffset public property

public float floorOffset
return float

initialVectorScale protected property

protected Vector3 initialVectorScale
return Vector3

mouseSpriteMove public property

public GameObject mouseSpriteMove
return GameObject

selected public property

public bool selected
return bool

speed protected property

protected float speed
return float

stopDistanceOffset protected property

protected float stopDistanceOffset
return float

team public property

public int team
return int