C# Class GameFramework.EntityInfo

显示文件 Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Methods

Method Description
AddStoryFlag ( StoryListenFlagEnum mask ) : void
CalcBaseAttr ( ) : void
CanSee ( EntityInfo source, EntityInfo target ) : bool
CanSee ( EntityInfo source, EntityInfo target, float distSqr, System.Vector3 pos1, System.Vector3 pos2 ) : bool
CanUseSkill ( ) : bool
EntityInfo ( int id ) : System
GetAIEnable ( ) : bool
GetActualProperty ( ) : CharacterProperty
GetAiStateInfo ( ) : AiStateInfo
GetBaseProperty ( ) : CharacterProperty
GetCampId ( ) : int
GetCombatStatisticInfo ( ) : CombatStatisticInfo
GetId ( ) : int
GetLevel ( ) : int
GetLinkId ( ) : int
GetModel ( ) : string
GetMovementStateInfo ( ) : MovementStateInfo
GetName ( ) : string
GetRadius ( ) : float
GetRelation ( EntityInfo pObj_A, EntityInfo pObj_B ) : CharacterRelation
GetRelation ( int campA, int campB ) : CharacterRelation
GetSkillStateInfo ( ) : SkillStateInfo
GetUnitId ( ) : int
InitId ( int id ) : void
IsCombatNpc ( ) : bool
IsDead ( ) : bool
IsDeadSkillCasting ( ) : bool
IsHaveStateFlag ( CharacterState_Type type ) : bool
IsHaveStoryFlag ( StoryListenFlagEnum flag ) : bool
IsTargetNpc ( ) : bool
IsUnderControl ( ) : bool
LoadData ( TableConfig cfg ) : void
LoadData ( int unitId, int camp, TableConfig cfg, int ai ) : void
RemoveStoryFlag ( StoryListenFlagEnum mask ) : void
Reset ( ) : void
ResetAttackerInfo ( ) : void
RetireAttackerInfos ( long lifetime ) : void
SetAIEnable ( bool enable ) : void
SetAttackTime ( ) : void
SetAttackerInfo ( int attackId, bool isKiller, bool isNormalAttack, bool isCritical, int hpDamage, int npDamage ) : void
SetCampId ( int val ) : void
SetCanUseSkill ( bool can_use_skill ) : void
SetEnergy ( Operate_Type opType, int tVal ) : void
SetHp ( Operate_Type opType, int tVal ) : void
SetLevel ( int level ) : void
SetLinkId ( int id ) : void
SetModel ( string model ) : void
SetName ( string name ) : void
SetShield ( Operate_Type opType, int tVal ) : void
SetStateFlag ( Operate_Type opType, CharacterState_Type mask ) : void
SetUnitId ( int id ) : void

Private Methods

Method Description
InitBase ( int id ) : void
ResetBaseInfo ( ) : void

Method Details

AddStoryFlag() public method

public AddStoryFlag ( StoryListenFlagEnum mask ) : void
mask StoryListenFlagEnum
return void

CalcBaseAttr() public method

public CalcBaseAttr ( ) : void
return void

CanSee() public static method

public static CanSee ( EntityInfo source, EntityInfo target ) : bool
source EntityInfo
target EntityInfo
return bool

CanSee() public static method

public static CanSee ( EntityInfo source, EntityInfo target, float distSqr, System.Vector3 pos1, System.Vector3 pos2 ) : bool
source EntityInfo
target EntityInfo
distSqr float
pos1 System.Vector3
pos2 System.Vector3
return bool

CanUseSkill() public method

public CanUseSkill ( ) : bool
return bool

EntityInfo() public method

public EntityInfo ( int id ) : System
id int
return System

GetAIEnable() public method

public GetAIEnable ( ) : bool
return bool

GetActualProperty() public method

public GetActualProperty ( ) : CharacterProperty
return CharacterProperty

GetAiStateInfo() public method

public GetAiStateInfo ( ) : AiStateInfo
return AiStateInfo

GetBaseProperty() public method

public GetBaseProperty ( ) : CharacterProperty
return CharacterProperty

GetCampId() public method

public GetCampId ( ) : int
return int

GetCombatStatisticInfo() public method

public GetCombatStatisticInfo ( ) : CombatStatisticInfo
return CombatStatisticInfo

GetId() public method

public GetId ( ) : int
return int

GetLevel() public method

public GetLevel ( ) : int
return int

GetLinkId() public method

public GetLinkId ( ) : int
return int

GetModel() public method

public GetModel ( ) : string
return string

GetMovementStateInfo() public method

public GetMovementStateInfo ( ) : MovementStateInfo
return MovementStateInfo

GetName() public method

public GetName ( ) : string
return string

GetRadius() public method

public GetRadius ( ) : float
return float

GetRelation() public static method

public static GetRelation ( EntityInfo pObj_A, EntityInfo pObj_B ) : CharacterRelation
pObj_A EntityInfo
pObj_B EntityInfo
return CharacterRelation

GetRelation() public static method

public static GetRelation ( int campA, int campB ) : CharacterRelation
campA int
campB int
return CharacterRelation

GetSkillStateInfo() public method

public GetSkillStateInfo ( ) : SkillStateInfo
return SkillStateInfo

GetUnitId() public method

public GetUnitId ( ) : int
return int

InitId() public method

public InitId ( int id ) : void
id int
return void

IsCombatNpc() public method

public IsCombatNpc ( ) : bool
return bool

IsDead() public method

public IsDead ( ) : bool
return bool

IsDeadSkillCasting() public method

public IsDeadSkillCasting ( ) : bool
return bool

IsHaveStateFlag() public method

public IsHaveStateFlag ( CharacterState_Type type ) : bool
type CharacterState_Type
return bool

IsHaveStoryFlag() public method

public IsHaveStoryFlag ( StoryListenFlagEnum flag ) : bool
flag StoryListenFlagEnum
return bool

IsTargetNpc() public method

public IsTargetNpc ( ) : bool
return bool

IsUnderControl() public method

public IsUnderControl ( ) : bool
return bool

LoadData() public method

public LoadData ( TableConfig cfg ) : void
cfg TableConfig
return void

LoadData() public method

public LoadData ( int unitId, int camp, TableConfig cfg, int ai ) : void
unitId int
camp int
cfg TableConfig
ai int
return void

RemoveStoryFlag() public method

public RemoveStoryFlag ( StoryListenFlagEnum mask ) : void
mask StoryListenFlagEnum
return void

Reset() public method

public Reset ( ) : void
return void

ResetAttackerInfo() public method

public ResetAttackerInfo ( ) : void
return void

RetireAttackerInfos() public method

public RetireAttackerInfos ( long lifetime ) : void
lifetime long
return void

SetAIEnable() public method

public SetAIEnable ( bool enable ) : void
enable bool
return void

SetAttackTime() public method

public SetAttackTime ( ) : void
return void

SetAttackerInfo() public method

public SetAttackerInfo ( int attackId, bool isKiller, bool isNormalAttack, bool isCritical, int hpDamage, int npDamage ) : void
attackId int
isKiller bool
isNormalAttack bool
isCritical bool
hpDamage int
npDamage int
return void

SetCampId() public method

public SetCampId ( int val ) : void
val int
return void

SetCanUseSkill() public method

public SetCanUseSkill ( bool can_use_skill ) : void
can_use_skill bool
return void

SetEnergy() public method

public SetEnergy ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
return void

SetHp() public method

public SetHp ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
return void

SetLevel() public method

public SetLevel ( int level ) : void
level int
return void

SetLinkId() public method

public SetLinkId ( int id ) : void
id int
return void

SetModel() public method

public SetModel ( string model ) : void
model string
return void

SetName() public method

public SetName ( string name ) : void
name string
return void

SetShield() public method

public SetShield ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
return void

SetStateFlag() public method

public SetStateFlag ( Operate_Type opType, CharacterState_Type mask ) : void
opType Operate_Type
mask CharacterState_Type
return void

SetUnitId() public method

public SetUnitId ( int id ) : void
id int
return void