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.

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