source: trunk/src/worldentity.cpp @ 2370

Last change on this file since 2370 was 2216, checked in by touky, 7 years ago

New year copyright update.

  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
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
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 = quat(1);
30    m_velocity = vec3(0);
31    m_rotation_velocity = vec3(0);
32    m_bbox[0] = m_bbox[1] = vec3(0);
33
34    m_mousepos = ivec2(0);
35    m_mousebuttons = ivec3(0);
36    m_pressed = ivec3(0);
37    m_clicked = ivec3(0);
38    m_released = ivec3(0);
39}
40
41WorldEntity::~WorldEntity()
42{
43}
44
45char const *WorldEntity::GetName()
46{
47    return "<worldentity>";
48}
49
50void WorldEntity::TickGame(float seconds)
51{
52    Entity::TickGame(seconds);
53}
54
55void WorldEntity::TickDraw(float seconds)
56{
57    Entity::TickDraw(seconds);
58}
59
60} /* namespace lol */
61
Note: See TracBrowser for help on using the repository browser.