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