diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-09 17:51:10 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-09 17:51:10 +0200 |
commit | efe4f0baddf10124581e4fcb88d55a52838b06a1 (patch) | |
tree | c07882eb005e486abe1dbb03d008f6cca2898fe6 /src/common/event.h | |
parent | b3d5491af4f953e8d63800897c40d602de9e9305 (diff) | |
download | colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.gz colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.bz2 colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.zip |
Refactoring in src/common
- refactored CInstanceManager and some headers
- removed old headers
Diffstat (limited to 'src/common/event.h')
-rw-r--r-- | src/common/event.h | 52 |
1 files changed, 9 insertions, 43 deletions
diff --git a/src/common/event.h b/src/common/event.h index 3192931..e57bd08 100644 --- a/src/common/event.h +++ b/src/common/event.h @@ -14,17 +14,17 @@ // * You should have received a copy of the GNU General Public License // * along with this program. If not, see http://www.gnu.org/licenses/. -// event.h +/** + * \file common/event.h + * \brief Event types, structs and event queue + */ #pragma once -#include <common/key.h> -#include <common/event_ids.h> -#include <math/point.h> - -#include <string.h> - +#include "common/key.h" +#include "common/event_ids.h" +#include "math/point.h" class CInstanceManager; @@ -193,40 +193,8 @@ struct Event }; -/** - \enum KeyRank - \brief Slots for key assignment of user controls - */ - -// TODO: move to global.h ? - -enum KeyRank -{ - KEYRANK_LEFT = 0, - KEYRANK_RIGHT = 1, - KEYRANK_UP = 2, - KEYRANK_DOWN = 3, - KEYRANK_GUP = 4, - KEYRANK_GDOWN = 5, - KEYRANK_CAMERA = 6, - KEYRANK_DESEL = 7, - KEYRANK_ACTION = 8, - KEYRANK_NEAR = 9, - KEYRANK_AWAY = 10, - KEYRANK_NEXT = 11, - KEYRANK_HUMAN = 12, - KEYRANK_QUIT = 13, - KEYRANK_HELP = 14, - KEYRANK_PROG = 15, - KEYRANK_VISIT = 16, - KEYRANK_SPEED10 = 17, - KEYRANK_SPEED15 = 18, - KEYRANK_SPEED20 = 19, - KEYRANK_SPEED30 = 20, - KEYRANK_AIMUP = 21, - KEYRANK_AIMDOWN = 22, - KEYRANK_CBOT = 23, -}; +//! Returns an unique event type (above the standard IDs) +EventType GetUniqueEventType(); /** @@ -261,5 +229,3 @@ protected: int m_tail; int m_total; }; - - |