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.
 
 
 

61 lines
1.0 KiB

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2012 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. m_position = vec3(0);
  23. m_rotation = vec3(0);
  24. m_velocity = vec3(0);
  25. m_bbox[0] = m_bbox[1] = vec3(0);
  26. m_mousepos = ivec2(0);
  27. m_mousebuttons = ivec3(0);
  28. m_pressed = ivec3(0);
  29. m_clicked = ivec3(0);
  30. m_released = ivec3(0);
  31. }
  32. WorldEntity::~WorldEntity()
  33. {
  34. }
  35. char const *WorldEntity::GetName()
  36. {
  37. return "<worldentity>";
  38. }
  39. void WorldEntity::TickGame(float seconds)
  40. {
  41. Entity::TickGame(seconds);
  42. }
  43. void WorldEntity::TickDraw(float seconds)
  44. {
  45. Entity::TickDraw(seconds);
  46. }
  47. } /* namespace lol */