source: trunk/src/mapviewer.h @ 155

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

New MapViewer class and some GTK+ refactoring.

  • Property svn:keywords set to Id
File size: 672 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#include "scene.h"
16
17class MapViewerData;
18
19class MapViewer : public Entity
20{
21public:
22    MapViewer(char const *mapname);
23    ~MapViewer();
24
25protected:
26    /* Inherited from Entity */
27    virtual Group GetGroup();
28    virtual void TickGame(float deltams);
29    virtual void TickDraw(float deltams);
30
31public:
32    /* New methods */
33    Scene *GetScene();
34    void SetMouse(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.