source: trunk/src/worldentity.cpp @ 1310

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

core: tick methods now use seconds, like any sane system.

  • Property svn:keywords set to Id
File size: 1.0 KB
RevLine 
[312]1//
2// Lol Engine
3//
[1310]4// Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net>
[312]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
[686]19namespace lol
20{
21
[312]22/*
23 * Public WorldEntity class
24 */
25
26WorldEntity::WorldEntity()
27{
[1300]28    m_position = vec3(0);
29    m_rotation = vec3(0);
30    m_velocity = vec3(0);
31    m_bbox[0] = m_bbox[1] = vec3(0);
[729]32
[1300]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);
[312]38}
39
40WorldEntity::~WorldEntity()
41{
42}
43
44char const *WorldEntity::GetName()
45{
46    return "<worldentity>";
47}
48
[1310]49void WorldEntity::TickGame(float seconds)
[312]50{
[1310]51    Entity::TickGame(seconds);
[312]52}
53
[1310]54void WorldEntity::TickDraw(float seconds)
[312]55{
[1310]56    Entity::TickDraw(seconds);
[312]57}
58
[686]59} /* namespace lol */
60
Note: See TracBrowser for help on using the repository browser.