25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
465 B

  1. //
  2. // Deus Hax (working title)
  3. // Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
  4. //
  5. //
  6. // The Dict class
  7. // --------------
  8. //
  9. #if !defined __DH_DICT_H__
  10. #define __DH_DICT_H__
  11. #include "entity.h"
  12. class DictData;
  13. class Dict
  14. {
  15. public:
  16. Dict();
  17. ~Dict();
  18. int MakeSlot(char const *name);
  19. void RemoveSlot(int id);
  20. void SetEntity(int id, Entity *entity);
  21. Entity *GetEntity(int id);
  22. private:
  23. DictData *data;
  24. };
  25. #endif // __DH_DICT_H__