Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

62 lignes
1.0 KiB

  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 = ivec3(0);
  30. m_clicked = ivec3(0);
  31. m_released = ivec3(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 */