Emergency 20 Dokumentation  4.2.0
HintMessage-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  mMessageType(MESSAGETYPE_HINT),
16  mPlayerIndex(0)
17  {
18  // Nothing here
19  }
20 
21  inline HintMessage::HintMessage(MessageType messageType, const std::string& messageText, const std::string& audioFile, uint32 playerIndex) :
22  mMessageType(messageType),
23  mMessageText(messageText),
24  mAudioFile(audioFile),
25  mPlayerIndex(playerIndex)
26  {
27  // Nothing here
28  }
29 
31  {
32  // Nothing here
33  }
34 
36  {
37  return mMessageType;
38  }
39 
40  inline const std::string& HintMessage::getMessageText() const
41  {
42  return mMessageText;
43  }
44 
45  inline const std::string& HintMessage::getAudioFile() const
46  {
47  return mAudioFile;
48  }
49 
51  {
52  return mPlayerIndex;
53  }
54 
55 
56 //[-------------------------------------------------------]
57 //[ Namespace ]
58 //[-------------------------------------------------------]
59 } // em5
Definition: ActionPriority.h:13
MessageType getMessageType() const
Definition: HintMessage-inl.h:35
unsigned int uint32
Definition: PlatformTypes.h:181
HintMessage()
Constructor.
Definition: HintMessage-inl.h:14
const std::string & getMessageText() const
Definition: HintMessage-inl.h:40
uint32 getPlayerIndex() const
Definition: HintMessage-inl.h:50
const std::string & getAudioFile() const
Definition: HintMessage-inl.h:45
MessageType
Definition: HintMessage.h:40
virtual ~HintMessage()
Destructor.
Definition: HintMessage-inl.h:30