Emergency 20 Dokumentation  4.2.0
GhostComponent-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Public methods ]
13  //[-------------------------------------------------------]
15  Component(prototype),
16  mApplyDelay(2),
17  mPlayerId(qsf::getUninitialized<uint32>()),
18  mLocalPlayerId(qsf::getUninitialized<uint32>()),
19  mAlphaValue(0.35f),
20  mInternalIsGhost(false),
21  mRendererIsGhost(false)
22  {
23  // Nothing to do in here
24  }
25 
27  {
28  return mPlayerId;
29  }
30 
31  inline bool GhostComponent::isGhost() const
32  {
33  return mInternalIsGhost;
34  }
35 
36 
37 //[-------------------------------------------------------]
38 //[ Namespace ]
39 //[-------------------------------------------------------]
40 } // em5
Definition: ActionPriority.h:13
uint32 getPlayerId() const
Definition: GhostComponent-inl.h:26
unsigned int uint32
Definition: PlatformTypes.h:181
Definition: PickupPersonByParamedicAction.h:21
T getUninitialized()
Definition: GetUninitialized.h:38
bool isGhost() const
Returns if the entity is a ghost (doesn't belongs to the local player)
Definition: GhostComponent-inl.h:31
Prototype class.
Definition: Prototype.h:100
GhostComponent(qsf::Prototype *prototype)
Definition: GhostComponent-inl.h:14