C# 클래스 RTSEngine.Data.Team.RTSUnit

상속: ICombatEntity
파일 보기 프로젝트 열기: RegrowthStudios/VoxelRTS 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
target IEntity

공개 메소드들

메소드 설명
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

메소드 상세

ComputeDamage() 공개 메소드

public ComputeDamage ( double rand ) : int
rand double
리턴 int

Damage() 공개 메소드

public Damage ( int d ) : void
d int
리턴 void

DamageTarget() 공개 메소드

public DamageTarget ( double rand ) : void
rand double
리턴 void

Deserialize() 공개 정적인 메소드

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

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

Move() 공개 메소드

public Move ( Vector2 change ) : void
change Vector2
리턴 void

RTSUnit() 공개 메소드

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

Serialize() 공개 정적인 메소드

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

TurnToFace() 공개 메소드

public TurnToFace ( Vector2 pos ) : void
pos Vector2
리턴 void

프로퍼티 상세

target 보호되어 있는 프로퍼티

protected IEntity target
리턴 IEntity