source: trunk/src/worldentity.cpp @ 1309

Last change on this file since 1309 was 1300, checked in by sam, 8 years ago

core: prefix some member variables with m_ for clarity.

  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 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#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#include <cstdlib>
16
17#include "core.h"
18
19namespace lol
20{
21
22/*
23 * Public WorldEntity class
24 */
25
26WorldEntity::WorldEntity()
27{
28    m_position = vec3(0);
29    m_rotation = vec3(0);
30    m_velocity = vec3(0);
31    m_bbox[0] = m_bbox[1] = vec3(0);
32
33    m_mousepos = ivec2(0);
34    m_mousebuttons = ivec3(0);
35    m_pressed = ivec3(0);
36    m_clicked = ivec3(0);
37    m_released = ivec3(0);
38}
39
40WorldEntity::~WorldEntity()
41{
42}
43
44char const *WorldEntity::GetName()
45{
46    return "<worldentity>";
47}
48
49void WorldEntity::TickGame(float deltams)
50{
51    Entity::TickGame(deltams);
52}
53
54void WorldEntity::TickDraw(float deltams)
55{
56    Entity::TickDraw(deltams);
57}
58
59} /* namespace lol */
60
Note: See TracBrowser for help on using the repository browser.