C# Class RTSEngine.Data.Team.RTSUnit

Inheritance: ICombatEntity
Afficher le fichier Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Protected Properties

Свойство Type Description
target IEntity

Méthodes publiques

Méthode Description
ComputeDamage ( double rand ) : int
Damage ( int d ) : void
DamageTarget ( double rand ) : void
Deserialize ( BinaryReader s, RTSTeam team, int &target ) : RTSUnit
Destroy ( ) : void
Move ( Vector2 change ) : void
RTSUnit ( RTSTeam team, RTSUnitData data, Vector2 position ) : System
Serialize ( BinaryWriter s, RTSUnit e ) : void
TurnToFace ( Vector2 pos ) : void

Method Details

ComputeDamage() public méthode

public ComputeDamage ( double rand ) : int
rand double
Résultat int

Damage() public méthode

public Damage ( int d ) : void
d int
Résultat void

DamageTarget() public méthode

public DamageTarget ( double rand ) : void
rand double
Résultat void

Deserialize() public static méthode

public static Deserialize ( BinaryReader s, RTSTeam team, int &target ) : RTSUnit
s System.IO.BinaryReader
team RTSTeam
target int
Résultat RTSUnit

Destroy() public méthode

public Destroy ( ) : void
Résultat void

Move() public méthode

public Move ( Vector2 change ) : void
change Vector2
Résultat void

RTSUnit() public méthode

public RTSUnit ( RTSTeam team, RTSUnitData data, Vector2 position ) : System
team RTSTeam
data RTSUnitData
position Vector2
Résultat System

Serialize() public static méthode

public static Serialize ( BinaryWriter s, RTSUnit e ) : void
s System.IO.BinaryWriter
e RTSUnit
Résultat void

TurnToFace() public méthode

public TurnToFace ( Vector2 pos ) : void
pos Vector2
Résultat void

Property Details

target protected_oe property

protected IEntity target
Résultat IEntity