ScummVM API documentation
Action.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 /*
23  * Copyright (C) 2006-2010 - Frictional Games
24  *
25  * This file is part of HPL1 Engine.
26  */
27 
28 #ifndef HPL_ACTION_H
29 #define HPL_ACTION_H
30 
31 #include "hpl1/engine/system/SystemTypes.h"
32 
33 namespace hpl {
34 
35 class iAction {
36 public:
37  iAction(tString asName);
38  virtual ~iAction() {}
39 
44  bool WasTriggerd();
45 
50  bool BecameTriggerd();
51 
56  bool DoubleTriggerd(float afLimit);
57 
61  void Update(float afTimeStep);
62 
67  tString GetName();
68 
72  virtual void UpdateLogic(float afTimeStep);
73 
78  virtual bool IsTriggerd() = 0;
79 
84  virtual float GetValue() = 0;
85 
89  virtual tString GetInputName() = 0;
90 
94  virtual tString GetInputType() = 0;
95 
96 private:
97  tString msName;
98 
99  bool mbBecameTriggerd;
100  bool mbIsTriggerd;
101 
102  bool mbTriggerDown;
103 
104  double mfTimeCount;
105 };
106 
107 } // namespace hpl
108 
109 #endif // HPL_ACTION_H
Definition: AI.h:36
Definition: str.h:59
bool WasTriggerd()
tString GetName()
virtual float GetValue()=0
Definition: Action.h:35
virtual tString GetInputName()=0
virtual void UpdateLogic(float afTimeStep)
virtual bool IsTriggerd()=0
bool DoubleTriggerd(float afLimit)
void Update(float afTimeStep)
virtual tString GetInputType()=0
bool BecameTriggerd()