You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://www.wtfpl.net/ for more details.
  9. //
  10. #pragma once
  11. //
  12. // The Dict class
  13. // --------------
  14. //
  15. #include "entity.h"
  16. namespace lol
  17. {
  18. class DictData;
  19. class Dict
  20. {
  21. public:
  22. Dict();
  23. ~Dict();
  24. int MakeSlot(char const *name);
  25. void RemoveSlot(int slotid);
  26. void RemoveSlot(Entity *entity);
  27. void SetEntity(int slotid, Entity *entity);
  28. Entity *GetEntity(int slotid);
  29. private:
  30. DictData *data;
  31. };
  32. } /* namespace lol */