C# Class Units, RTSmini

Inheritance: MonoBehaviour
Afficher le fichier Open project: Arihy/RTSmini Class Usage Examples

Méthodes publiques

Свойство Type Description
floorOffset float
mouseSpriteMove GameObject
selected bool
team int

Protected Properties

Свойство Type Description
attackFrequency int
attackStrength float
destination Vector3
distanceAttack float
distancePercept float
env Environnement,
initialVectorScale Vector3
speed float
stopDistanceOffset float

Méthodes publiques

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

Méthodes protégées

Méthode Description
computeUnityScale ( ) : void
setInitialEnergy ( float newenergy ) : void

Private Methods

Méthode Description
OnMouseDown ( ) : void
OnMouseUp ( ) : void

Method Details

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

computeUnityScale() protected méthode

protected computeUnityScale ( ) : void
Résultat void

destroy() public méthode

public destroy ( ) : void
Résultat void

getAttackFrequency() public méthode

public getAttackFrequency ( ) : int
Résultat int

getAttackStrength() public méthode

public getAttackStrength ( ) : float
Résultat float

getDestination() public méthode

public getDestination ( ) : Vector3
Résultat Vector3

getDistanceAttack() public méthode

public getDistanceAttack ( ) : float
Résultat float

getDistancePercept() public méthode

public getDistancePercept ( ) : float
Résultat float

getEnergy() public méthode

public getEnergy ( ) : float
Résultat float

getEnergyMax() public méthode

public getEnergyMax ( ) : float
Résultat float

getEnv() public méthode

public getEnv ( ) : Environnement,
Résultat Environnement,

getId() public méthode

public getId ( ) : int
Résultat int

getNbFrameSinceLastShot() public méthode

public getNbFrameSinceLastShot ( ) : int
Résultat int

getProximityEnemies() public méthode

public getProximityEnemies ( ) : List
Résultat List

getProximityProds() public méthode

public getProximityProds ( ) : List
Résultat List

getProximityTriangleProds() public méthode

public getProximityTriangleProds ( ) : List
Résultat List

getSpeed() public méthode

public getSpeed ( ) : float
Résultat float

getStopDistanceOffset() public méthode

public getStopDistanceOffset ( ) : float
Résultat float

getTeam() public méthode

public getTeam ( ) : int
Résultat int

goTo() public méthode

public goTo ( Vector3 dest ) : void
dest Vector3
Résultat void

mustDie() public méthode

public mustDie ( ) : bool
Résultat bool

reduceEnergy() public méthode

public reduceEnergy ( float dmg ) : void
dmg float
Résultat void

setDestination() public méthode

public setDestination ( Vector3 dest ) : void
dest Vector3
Résultat void

setId() public méthode

public setId ( int newId ) : void
newId int
Résultat void

setInitialEnergy() protected méthode

protected setInitialEnergy ( float newenergy ) : void
newenergy float
Résultat void

setNbFrameSinceLastShot() public méthode

public setNbFrameSinceLastShot ( int newNbFrame ) : void
newNbFrame int
Résultat void

setTeam() public méthode

public setTeam ( int newTeam ) : void
newTeam int
Résultat void

Property Details

attackFrequency protected_oe property

protected int attackFrequency
Résultat int

attackStrength protected_oe property

protected float attackStrength
Résultat float

destination protected_oe property

protected Vector3 destination
Résultat Vector3

distanceAttack protected_oe property

protected float distanceAttack
Résultat float

distancePercept protected_oe property

protected float distancePercept
Résultat float

env protected_oe property

protected Environnement, env
Résultat Environnement,

floorOffset public_oe property

public float floorOffset
Résultat float

initialVectorScale protected_oe property

protected Vector3 initialVectorScale
Résultat Vector3

mouseSpriteMove public_oe property

public GameObject mouseSpriteMove
Résultat GameObject

selected public_oe property

public bool selected
Résultat bool

speed protected_oe property

protected float speed
Résultat float

stopDistanceOffset protected_oe property

protected float stopDistanceOffset
Résultat float

team public_oe property

public int team
Résultat int