C# Class GameFramework.EntityInfo

Afficher le fichier Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Méthodes publiques

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

Méthode Description
InitBase ( int id ) : void
ResetBaseInfo ( ) : void

Method Details

AddStoryFlag() public méthode

public AddStoryFlag ( StoryListenFlagEnum mask ) : void
mask StoryListenFlagEnum
Résultat void

CalcBaseAttr() public méthode

public CalcBaseAttr ( ) : void
Résultat void

CanSee() public static méthode

public static CanSee ( EntityInfo source, EntityInfo target ) : bool
source EntityInfo
target EntityInfo
Résultat bool

CanSee() public static méthode

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
Résultat bool

CanUseSkill() public méthode

public CanUseSkill ( ) : bool
Résultat bool

EntityInfo() public méthode

public EntityInfo ( int id ) : System
id int
Résultat System

GetAIEnable() public méthode

public GetAIEnable ( ) : bool
Résultat bool

GetActualProperty() public méthode

public GetActualProperty ( ) : CharacterProperty
Résultat CharacterProperty

GetAiStateInfo() public méthode

public GetAiStateInfo ( ) : AiStateInfo
Résultat AiStateInfo

GetBaseProperty() public méthode

public GetBaseProperty ( ) : CharacterProperty
Résultat CharacterProperty

GetCampId() public méthode

public GetCampId ( ) : int
Résultat int

GetCombatStatisticInfo() public méthode

public GetCombatStatisticInfo ( ) : CombatStatisticInfo
Résultat CombatStatisticInfo

GetId() public méthode

public GetId ( ) : int
Résultat int

GetLevel() public méthode

public GetLevel ( ) : int
Résultat int

GetLinkId() public méthode

public GetLinkId ( ) : int
Résultat int

GetModel() public méthode

public GetModel ( ) : string
Résultat string

GetMovementStateInfo() public méthode

public GetMovementStateInfo ( ) : MovementStateInfo
Résultat MovementStateInfo

GetName() public méthode

public GetName ( ) : string
Résultat string

GetRadius() public méthode

public GetRadius ( ) : float
Résultat float

GetRelation() public static méthode

public static GetRelation ( EntityInfo pObj_A, EntityInfo pObj_B ) : CharacterRelation
pObj_A EntityInfo
pObj_B EntityInfo
Résultat CharacterRelation

GetRelation() public static méthode

public static GetRelation ( int campA, int campB ) : CharacterRelation
campA int
campB int
Résultat CharacterRelation

GetSkillStateInfo() public méthode

public GetSkillStateInfo ( ) : SkillStateInfo
Résultat SkillStateInfo

GetUnitId() public méthode

public GetUnitId ( ) : int
Résultat int

InitId() public méthode

public InitId ( int id ) : void
id int
Résultat void

IsCombatNpc() public méthode

public IsCombatNpc ( ) : bool
Résultat bool

IsDead() public méthode

public IsDead ( ) : bool
Résultat bool

IsDeadSkillCasting() public méthode

public IsDeadSkillCasting ( ) : bool
Résultat bool

IsHaveStateFlag() public méthode

public IsHaveStateFlag ( CharacterState_Type type ) : bool
type CharacterState_Type
Résultat bool

IsHaveStoryFlag() public méthode

public IsHaveStoryFlag ( StoryListenFlagEnum flag ) : bool
flag StoryListenFlagEnum
Résultat bool

IsTargetNpc() public méthode

public IsTargetNpc ( ) : bool
Résultat bool

IsUnderControl() public méthode

public IsUnderControl ( ) : bool
Résultat bool

LoadData() public méthode

public LoadData ( TableConfig cfg ) : void
cfg TableConfig
Résultat void

LoadData() public méthode

public LoadData ( int unitId, int camp, TableConfig cfg, int ai ) : void
unitId int
camp int
cfg TableConfig
ai int
Résultat void

RemoveStoryFlag() public méthode

public RemoveStoryFlag ( StoryListenFlagEnum mask ) : void
mask StoryListenFlagEnum
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

ResetAttackerInfo() public méthode

public ResetAttackerInfo ( ) : void
Résultat void

RetireAttackerInfos() public méthode

public RetireAttackerInfos ( long lifetime ) : void
lifetime long
Résultat void

SetAIEnable() public méthode

public SetAIEnable ( bool enable ) : void
enable bool
Résultat void

SetAttackTime() public méthode

public SetAttackTime ( ) : void
Résultat void

SetAttackerInfo() public méthode

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
Résultat void

SetCampId() public méthode

public SetCampId ( int val ) : void
val int
Résultat void

SetCanUseSkill() public méthode

public SetCanUseSkill ( bool can_use_skill ) : void
can_use_skill bool
Résultat void

SetEnergy() public méthode

public SetEnergy ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
Résultat void

SetHp() public méthode

public SetHp ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
Résultat void

SetLevel() public méthode

public SetLevel ( int level ) : void
level int
Résultat void

SetLinkId() public méthode

public SetLinkId ( int id ) : void
id int
Résultat void

SetModel() public méthode

public SetModel ( string model ) : void
model string
Résultat void

SetName() public méthode

public SetName ( string name ) : void
name string
Résultat void

SetShield() public méthode

public SetShield ( Operate_Type opType, int tVal ) : void
opType Operate_Type
tVal int
Résultat void

SetStateFlag() public méthode

public SetStateFlag ( Operate_Type opType, CharacterState_Type mask ) : void
opType Operate_Type
mask CharacterState_Type
Résultat void

SetUnitId() public méthode

public SetUnitId ( int id ) : void
id int
Résultat void