Emergency 20 Dokumentation  4.2.0
TreatmentInformation.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
17 #include <qsf/time/Time.h>
19 
20 
21 //[-------------------------------------------------------]
22 //[ Namespace ]
23 //[-------------------------------------------------------]
24 namespace em5
25 {
26 
27 
28  //[-------------------------------------------------------]
29  //[ Classes ]
30  //[-------------------------------------------------------]
36  {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Public methods ]
41  //[-------------------------------------------------------]
42  public:
47  explicit TreatmentInformation();
48 
53  virtual ~TreatmentInformation();
54 
55  // Get the diagnosis ID
56  uint32 getDiagnosisId() const;
57 
58  // Get the name of the diagnosis
59  const std::string& getName() const;
60 
61  // Set the name of the diagnosis
62  void setName(const std::string& name);
63 
64  // Get the time the treatment is used
65  const qsf::Time& getUsingTime() const;
66 
67  // Set the time of the treatment
68  void setUsingTime(const qsf::Time& time);
69 
70  const qsf::AssetProxy& getDoctorAnimation() const;
71  void setDoctorAnimation(const qsf::AssetProxy& doctorAnimation);
72 
73  const qsf::AssetProxy& getDoctorAnimationLoop() const;
74  void setDoctorAnimationLoop(const qsf::AssetProxy& doctorAnimationLoop);
75 
76  const std::string& getDoctorAnimationEnd() const;
77  void setDoctorAnimationEnd(const std::string& doctorAnimationEnd);
78 
79  const std::string& getTreatmentLogicName() const;
80  void setTreatmentLogicName(const std::string& doctorActionName);
81 
82  const std::string& getEquipmentMainName() const;
83  void setEquipmentMainName(const std::string& equipmentMainName);
84 
85  const std::string& getEquipmentUseAnimationName() const;
86  void setEquipmentUseAnimationName(const std::string& equipmentUseAnimationName);
87 
88  const std::string& getEquipmentUseLoopAnimationName() const;
89  void setEquipmentUseLoopAnimationName(const std::string& equipmentUseLoopAnimationName);
90 
91  const std::string& getEquipmentUseEndAnimationName() const;
92  void setEquipmentUseEndAnimationName(const std::string& equipmentUseEndAnimationName);
93 
94  const std::string& getEquipmentGetAnimationName() const;
95  void setEquipmentGetAnimationName(const std::string& equipmentGetAnimationName);
96 
97  const std::string& getEquipmentPutBackAnimationName() const;
98  void setEquipmentPutBackAnimationName(const std::string& equipmentPutBackAnimationName);
99 
100  const std::string& getEquipmentSecondName() const;
101  void setEquipmentSecondName(const std::string& equipmentSecondName);
102 
103  const qsf::Time& getTime1() const;
104  void setTime1(const qsf::Time& time1);
105 
106  const qsf::Time& getTime2() const;
107  void setTime2(const qsf::Time& time2);
108 
109 
110  //[-------------------------------------------------------]
111  //[ Protected data ]
112  //[-------------------------------------------------------]
113  protected:
118  std::string mDoctorAnimationEnd;
119  std::string mTreatmentLogicName;
120  std::string mEquipmentMainName;
126  std::string mEquipmentSecondName;
129 
130 
131  //[-------------------------------------------------------]
132  //[ CAMP reflection system ]
133  //[-------------------------------------------------------]
134  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
135 
136 
137  };
138 
139 
140 //[-------------------------------------------------------]
141 //[ Namespace ]
142 //[-------------------------------------------------------]
143 } // em5
144 
145 
146 //[-------------------------------------------------------]
147 //[ CAMP reflection system ]
148 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
std::string mTreatmentLogicName
Name of the action the doctor should play.
Definition: TreatmentInformation.h:119
Object base class.
Definition: Object.h:68
Diagnosis definition class.
Definition: TreatmentInformation.h:35
std::string mDoctorAnimationEnd
The last part of the looped treatment animation.
Definition: TreatmentInformation.h:118
qsf::Time mTime2
Definition: TreatmentInformation.h:128
unsigned int uint32
Definition: PlatformTypes.h:181
std::string mEquipmentMainName
Definition: TreatmentInformation.h:120
#define EM5_API_EXPORT
Definition: Export.h:28
std::string mEquipmentPutBackAnimationName
Definition: TreatmentInformation.h:122
qsf::Time mTime1
Definition: TreatmentInformation.h:127
std::string mEquipmentGetAnimationName
Definition: TreatmentInformation.h:121
qsf::NamedIdentifier mName
Name and ID of the diagnosis/medical care.
Definition: TreatmentInformation.h:114
qsf::AssetProxy mDoctorAnimation
The animation the doctor is playing.
Definition: TreatmentInformation.h:116
Asset proxy class.
Definition: AssetProxy.h:57
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
qsf::AssetProxy mDoctorAnimationLoop
The animation the doctor is looping.
Definition: TreatmentInformation.h:117
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
qsf::Time mTime
Time how long it takes to make the diagnosis/medical care.
Definition: TreatmentInformation.h:115
std::string mEquipmentUseEndAnimationName
Definition: TreatmentInformation.h:125
std::string mEquipmentUseLoopedAnimationName
Definition: TreatmentInformation.h:124
std::string mEquipmentSecondName
Definition: TreatmentInformation.h:126
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
std::string mEquipmentUseAnimationName
Definition: TreatmentInformation.h:123
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32