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.
 
 
 

52 lines
892 B

  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. #include <lol/engine-internal.h>
  11. #include <cstdlib>
  12. namespace lol
  13. {
  14. /*
  15. * Public WorldEntity class
  16. */
  17. WorldEntity::WorldEntity()
  18. : m_aabb(vec3(0.f), vec3(0.f)),
  19. m_position(0.f),
  20. m_velocity(0.f),
  21. m_rotation(1.f),
  22. m_rotation_velocity(0.f)
  23. {
  24. }
  25. WorldEntity::~WorldEntity()
  26. {
  27. }
  28. char const *WorldEntity::GetName()
  29. {
  30. return "<worldentity>";
  31. }
  32. void WorldEntity::TickGame(float seconds)
  33. {
  34. Entity::TickGame(seconds);
  35. }
  36. void WorldEntity::TickDraw(float seconds, Scene &scene)
  37. {
  38. Entity::TickDraw(seconds, scene);
  39. }
  40. } /* namespace lol */