source: trunk/deushax/mapviewer.h @ 664

Last change on this file since 664 was 289, checked in by sam, 10 years ago

Change the way the Scene object works.

  • Property svn:keywords set to Id
File size: 662 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The MapViewer class
8// -------------------
9//
10
11#if !defined __DH_MAPVIEWER_H__
12#define __DH_MAPVIEWER_H__
13
14#include "entity.h"
15
16class MapViewerData;
17
18class MapViewer : public Entity
19{
20public:
21    MapViewer(char const *mapname);
22    ~MapViewer();
23
24protected:
25    /* Inherited from Entity */
26    virtual void TickGame(float deltams);
27    virtual void TickDraw(float deltams);
28
29public:
30    /* New methods */
31    Scene *GetScene();
32    int GetWidth();
33    int GetHeight();
34    void SetPOV(int x, int y);
35
36private:
37    MapViewerData *data;
38};
39
40#endif // __DH_MAPVIEWER_H__
41
Note: See TracBrowser for help on using the repository browser.