source: trunk/src/world.cpp @ 221

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

Complete Lol Engine / Deus Hax / Monsterz split.

  • Property svn:keywords set to Id
File size: 1.1 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 <cstdio>
16#include <cstring>
17#include <cstdlib>
18#include <ctype.h>
19
20#include "core.h"
21
22/*
23 * World implementation class
24 */
25
26class WorldData
27{
28    friend class World;
29
30private:
31    int width, height;
32};
33
34/*
35 * Public World class
36 */
37
38World::World()
39{
40    data = new WorldData();
41    data->width = 0;
42    data->height = 0;
43
44    drawgroup = DRAWGROUP_BEFORE;
45}
46
47World::~World()
48{
49    delete data;
50}
51
52char const *World::GetName()
53{
54    return "<world>";
55}
56
57void World::TickGame(float deltams)
58{
59    Entity::TickGame(deltams);
60}
61
62void World::TickDraw(float deltams)
63{
64    Entity::TickDraw(deltams);
65}
66
67int World::GetWidth()
68{
69    return data->width * 32;
70}
71
72int World::GetHeight()
73{
74    return data->height * 32;
75}
76
Note: See TracBrowser for help on using the repository browser.