source: trunk/src/dict.h @ 153

Last change on this file since 153 was 153, checked in by sam, 11 years ago

Factor Forge and Tiler using the new Dict class.

  • Property svn:keywords set to Id
File size: 465 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Dict class
8// --------------
9//
10
11#if !defined __DH_DICT_H__
12#define __DH_DICT_H__
13
14#include "entity.h"
15
16class DictData;
17
18class Dict
19{
20public:
21    Dict();
22    ~Dict();
23
24    int MakeSlot(char const *name);
25    void RemoveSlot(int id);
26
27    void SetEntity(int id, Entity *entity);
28    Entity *GetEntity(int id);
29
30private:
31    DictData *data;
32};
33
34#endif // __DH_DICT_H__
35
Note: See TracBrowser for help on using the repository browser.