source: trunk/src/tileset.h @ 100

Last change on this file since 100 was 100, checked in by sam, 11 years ago

Slightly improve the documentation in a few files, add the missing
joystick class, and put a header in each source file.

  • Property svn:keywords set to Id
File size: 680 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The TileSet class
8// -----------------
9// A TileSet contains the information necesary to blit tiles to the game
10// screen.
11//
12
13#if !defined __DH_TILESET_H__
14#define __DH_TILESET_H__
15
16#include <stdint.h>
17
18#include "asset.h"
19
20class TileSetData;
21
22class TileSet : public Asset
23{
24public:
25    TileSet(char const *path);
26    virtual ~TileSet();
27
28    /* Inherited from Asset */
29    virtual void TickRender(float delta_time);
30
31    /* New implementations */
32    char const *GetName();
33
34    void BlitTile(uint32_t id, int x, int y);
35
36private:
37    TileSetData *data;
38};
39
40#endif // __DH_TILESET_H__
41
Note: See TracBrowser for help on using the repository browser.