C# Class RTSEngine.Data.Team.RTSUnit

Inheritance: ICombatEntity
Datei anzeigen Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Protected Properties

Property Type Description
target IEntity

Public Methods

Method 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 method

public ComputeDamage ( double rand ) : int
rand double
return int

Damage() public method

public Damage ( int d ) : void
d int
return void

DamageTarget() public method

public DamageTarget ( double rand ) : void
rand double
return void

Deserialize() public static method

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

Destroy() public method

public Destroy ( ) : void
return void

Move() public method

public Move ( Vector2 change ) : void
change Vector2
return void

RTSUnit() public method

public RTSUnit ( RTSTeam team, RTSUnitData data, Vector2 position ) : System
team RTSTeam
data RTSUnitData
position Vector2
return System

Serialize() public static method

public static Serialize ( BinaryWriter s, RTSUnit e ) : void
s System.IO.BinaryWriter
e RTSUnit
return void

TurnToFace() public method

public TurnToFace ( Vector2 pos ) : void
pos Vector2
return void

Property Details

target protected_oe property

protected IEntity target
return IEntity