C# Class Common.GameEntity

Inheritance: MonoBehaviour, IGameEntity
ファイルを表示 Open project: gamemachine/gamemachine

Public Properties

Property Type Description
entityId string
healthbarTemplate GameObject
inactivityTimeout float
networkFieldsDb NetworkFieldsDb
shortId int

Public Methods

Method Description
Awake ( ) : void
FromGameObject ( Common.GameObject go ) : IGameEntity
GameEntityTypeFromTrackData ( TrackData trackData ) : GameEntityType
GetCharacter ( ) : Common.Character
GetCharacterId ( ) : string
GetControllerType ( ) : ControllerType
GetEntityId ( ) : string
GetGameEntityController ( ) : Common.GameEntityController
GetGameEntityType ( ) : GameEntityType
GetGameObject ( ) : Common.GameObject
GetNetworkFields ( ) : Common.NetworkFields
GetSpawnPoint ( ) : Common.Vector3
GetTargetPosition ( ) : Common.Vector3
GetTrackData ( ) : TrackData
GetTransform ( ) : Common.Transform
GetVitals ( ) : Vitals
HasVitals ( ) : bool
Init ( string entityId, Common.Character character, GameEntityType entityType, ControllerType controllerType ) : void
IsActive ( ) : bool
IsDead ( ) : bool
IsGameEntity ( Common.GameObject go ) : bool
IsInCombat ( ) : bool
IsLocalController ( ) : bool
IsNpc ( ) : bool
IsOtherPlayer ( ) : bool
IsPlayer ( ) : bool
MovementDisabled ( ) : bool
Remove ( ) : void
ResetTrackData ( ) : void
SetActive ( bool active, bool setLocation ) : void
SetCharacter ( Common.Character character ) : void
SetHealthbar ( bool active, float scale ) : void
SetShortId ( int shortId ) : void
SetTargetPosition ( Common.Vector3 targetPosition ) : void
SetVitals ( Vitals vitals ) : void
Start ( ) : void
Update ( ) : void
UpdateFromTrackData ( TrackData trackData, bool hasDelta ) : void

Private Methods

Method Description
AddHealthbar ( ) : void
UpdateHealthbar ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

FromGameObject() public static method

public static FromGameObject ( Common.GameObject go ) : IGameEntity
go Common.GameObject
return IGameEntity

GameEntityTypeFromTrackData() public static method

public static GameEntityTypeFromTrackData ( TrackData trackData ) : GameEntityType
trackData TrackData
return GameEntityType

GetCharacter() public method

public GetCharacter ( ) : Common.Character
return Common.Character

GetCharacterId() public method

public GetCharacterId ( ) : string
return string

GetControllerType() public method

public GetControllerType ( ) : ControllerType
return ControllerType

GetEntityId() public method

public GetEntityId ( ) : string
return string

GetGameEntityController() public method

public GetGameEntityController ( ) : Common.GameEntityController
return Common.GameEntityController

GetGameEntityType() public method

public GetGameEntityType ( ) : GameEntityType
return GameEntityType

GetGameObject() public method

public GetGameObject ( ) : Common.GameObject
return Common.GameObject

GetNetworkFields() public method

public GetNetworkFields ( ) : Common.NetworkFields
return Common.NetworkFields

GetSpawnPoint() public method

public GetSpawnPoint ( ) : Common.Vector3
return Common.Vector3

GetTargetPosition() public method

public GetTargetPosition ( ) : Common.Vector3
return Common.Vector3

GetTrackData() public method

public GetTrackData ( ) : TrackData
return TrackData

GetTransform() public method

public GetTransform ( ) : Common.Transform
return Common.Transform

GetVitals() public method

public GetVitals ( ) : Vitals
return Vitals

HasVitals() public method

public HasVitals ( ) : bool
return bool

Init() public method

public Init ( string entityId, Common.Character character, GameEntityType entityType, ControllerType controllerType ) : void
entityId string
character Common.Character
entityType GameEntityType
controllerType ControllerType
return void

IsActive() public method

public IsActive ( ) : bool
return bool

IsDead() public method

public IsDead ( ) : bool
return bool

IsGameEntity() public static method

public static IsGameEntity ( Common.GameObject go ) : bool
go Common.GameObject
return bool

IsInCombat() public method

public IsInCombat ( ) : bool
return bool

IsLocalController() public method

public IsLocalController ( ) : bool
return bool

IsNpc() public method

public IsNpc ( ) : bool
return bool

IsOtherPlayer() public method

public IsOtherPlayer ( ) : bool
return bool

IsPlayer() public method

public IsPlayer ( ) : bool
return bool

MovementDisabled() public method

public MovementDisabled ( ) : bool
return bool

Remove() public method

public Remove ( ) : void
return void

ResetTrackData() public method

public ResetTrackData ( ) : void
return void

SetActive() public method

public SetActive ( bool active, bool setLocation ) : void
active bool
setLocation bool
return void

SetCharacter() public method

public SetCharacter ( Common.Character character ) : void
character Common.Character
return void

SetHealthbar() public method

public SetHealthbar ( bool active, float scale ) : void
active bool
scale float
return void

SetShortId() public method

public SetShortId ( int shortId ) : void
shortId int
return void

SetTargetPosition() public method

public SetTargetPosition ( Common.Vector3 targetPosition ) : void
targetPosition Common.Vector3
return void

SetVitals() public method

public SetVitals ( Vitals vitals ) : void
vitals Vitals
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateFromTrackData() public method

public UpdateFromTrackData ( TrackData trackData, bool hasDelta ) : void
trackData TrackData
hasDelta bool
return void

Property Details

entityId public_oe property

public string entityId
return string

healthbarTemplate public_oe property

public GameObject healthbarTemplate
return GameObject

inactivityTimeout public_oe property

public float inactivityTimeout
return float

networkFieldsDb public_oe property

public NetworkFieldsDb networkFieldsDb
return NetworkFieldsDb

shortId public_oe property

public int shortId
return int