61 lines
981 B

  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://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. #if defined HAVE_CONFIG_H
  11. # include "config.h"
  12. #endif
  13. #include <cstdlib>
  14. #include "core.h"
  15. namespace lol
  16. {
  17. /*
  18. * Public WorldEntity class
  19. */
  20. WorldEntity::WorldEntity()
  21. {
  22. position = 0;
  23. rotation = 0;
  24. velocity = 0;
  25. bbox[0] = bbox[1] = 0;
  26. mousepos = 0;
  27. mousebuttons = 0;
  28. pressed = 0;
  29. clicked = 0;
  30. released = 0;
  31. }
  32. WorldEntity::~WorldEntity()
  33. {
  34. }
  35. char const *WorldEntity::GetName()
  36. {
  37. return "<worldentity>";
  38. }
  39. void WorldEntity::TickGame(float deltams)
  40. {
  41. Entity::TickGame(deltams);
  42. }
  43. void WorldEntity::TickDraw(float deltams)
  44. {
  45. Entity::TickDraw(deltams);
  46. }
  47. } /* namespace lol */