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.

dict.h 832 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // Lol Engine
  3. //
  4. // Copyright © 2010—2018 Sam Hocevar <sam@hocevar.net>
  5. //
  6. // Lol Engine is free software. It comes without any warranty, to
  7. // the extent permitted by applicable law. You can redistribute it
  8. // and/or modify it under the terms of the Do What the Fuck You Want
  9. // to Public License, Version 2, as published by the WTFPL Task Force.
  10. // See http://www.wtfpl.net/ for more details.
  11. //
  12. #pragma once
  13. //
  14. // The Dict class
  15. // --------------
  16. //
  17. #include "engine/entity.h"
  18. namespace lol
  19. {
  20. class DictData;
  21. class Dict
  22. {
  23. public:
  24. Dict();
  25. ~Dict();
  26. int MakeSlot(std::string const &name);
  27. void RemoveSlot(int slotid);
  28. void RemoveSlot(Entity *entity);
  29. void SetEntity(int slotid, Entity *entity);
  30. Entity *GetEntity(int slotid);
  31. private:
  32. DictData *data;
  33. };
  34. } /* namespace lol */