|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // Lol Engine
- //
- // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
- // This program is free software; you can redistribute it and/or
- // modify it under the terms of the Do What The Fuck You Want To
- // Public License, Version 2, as published by Sam Hocevar. See
- // http://www.wtfpl.net/ for more details.
- //
-
- //
- // The GraphicEntity class
- // -----------------------
- //
-
- #if !defined __LOL_WORLDENTITY_H__
- #define __LOL_WORLDENTITY_H__
-
- #include "entity.h"
-
- namespace lol
- {
-
- class WorldEntity : public Entity
- {
- public:
- virtual char const *GetName();
-
- public:
- vec3 m_position;
- vec3 m_velocity;
- quat m_rotation;
- vec3 m_rotation_velocity;
- vec3 m_bbox[2];
-
- ivec2 m_mousepos;
- ivec3 m_mousebuttons;
- uint32_t m_pressed, m_clicked, m_released;
-
- protected:
- WorldEntity();
- virtual ~WorldEntity();
-
- virtual void TickGame(float seconds);
- virtual void TickDraw(float seconds);
- };
-
- } /* namespace lol */
-
- #endif // __LOL_WORLDENTITY_H__
-
|