root/trunk/itemcontroller.hh
| Revision 1, 1.4 kB (checked in by poillubo, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | /* |
| 2 | * RoxTSlevel |
| 3 | * itemcontroller.hh |
| 4 | * Copyright (C) 2006 RASNEUR Vincent |
| 5 | * void loadMap(string mapname); |
| 6 | * Copyright (C) 2006 VERRIER Anaƫl |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ |
| 22 | |
| 23 | #ifndef ITEMCONTROLLER_HH |
| 24 | #define ITEMCONTROLLER_HH |
| 25 | |
| 26 | #include <set> |
| 27 | |
| 28 | #include "controller.hh" |
| 29 | #include "item.hh" |
| 30 | #include "modeldatabase.hh" |
| 31 | #include "utils.hh" |
| 32 | |
| 33 | using namespace std; |
| 34 | |
| 35 | class ItemController: public Controller |
| 36 | { |
| 37 | // Attributes |
| 38 | private: |
| 39 | static ItemController * instance; |
| 40 | // Operations |
| 41 | private: |
| 42 | ItemController(); |
| 43 | public: |
| 44 | static ItemController * getInstance(); |
| 45 | void update(); |
| 46 | void notifyController(uint32 victim, uint32 attribute, uint32 value); |
| 47 | void notifyController(uint8 event, vector<uint32> values); |
| 48 | }; |
| 49 | |
| 50 | #endif |
Note: See TracBrowser for help on using the browser.
