source: trunk/src/worldentity.h @ 1687

Last change on this file since 1687 was 1376, checked in by touky, 9 years ago

Small WorldEntity tweaks.

  • Property svn:keywords set to Id
File size: 1001 bytes
Line 
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
11//
12// The GraphicEntity class
13// -----------------------
14//
15
16#if !defined __LOL_WORLDENTITY_H__
17#define __LOL_WORLDENTITY_H__
18
19#include "entity.h"
20
21namespace lol
22{
23
24class WorldEntity : public Entity
25{
26public:
27    vec3 m_position;
28    vec3 m_velocity;
29    quat m_rotation;
30    vec3 m_rotation_velocity;
31    vec3 m_bbox[2];
32
33    ivec2 m_mousepos;
34    ivec3 m_mousebuttons;
35    ivec3 m_pressed, m_clicked, m_released;
36
37protected:
38    WorldEntity();
39    virtual ~WorldEntity();
40
41    virtual char const *GetName();
42
43    virtual void TickGame(float seconds);
44    virtual void TickDraw(float seconds);
45};
46
47} /* namespace lol */
48
49#endif // __LOL_WORLDENTITY_H__
50
Note: See TracBrowser for help on using the repository browser.