source: trunk/src/worldentity.cpp @ 729

Last change on this file since 729 was 729, checked in by sam, 9 years ago

core: fix uninitialised WorldEntity members.

  • Property svn:keywords set to Id
File size: 999 bytes
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#include <cstdio>
17
18#include "core.h"
19
20namespace lol
21{
22
23/*
24 * Public WorldEntity class
25 */
26
27WorldEntity::WorldEntity()
28{
29    position = 0;
30    rotation = 0;
31    velocity = 0;
32    bbox[0] = bbox[1] = 0;
33
34    mousepos = 0;
35    mousebuttons = 0;
36    pressed = 0;
37    clicked = 0;
38    released = 0;
39}
40
41WorldEntity::~WorldEntity()
42{
43}
44
45char const *WorldEntity::GetName()
46{
47    return "<worldentity>";
48}
49
50void WorldEntity::TickGame(float deltams)
51{
52    Entity::TickGame(deltams);
53}
54
55void WorldEntity::TickDraw(float deltams)
56{
57    Entity::TickDraw(deltams);
58}
59
60} /* namespace lol */
61
Note: See TracBrowser for help on using the repository browser.