source: trunk/src/tileset.h @ 96

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

Implement lazy initialisation of TileSet objects.

  • Property svn:keywords set to Id
File size: 489 bytes
RevLine 
[22]1
2/*
3 * The tile manager
4 */
5
[75]6#if !defined __DH_TILESET_H__
7#define __DH_TILESET_H__
[38]8
[79]9#include <stdint.h>
10
[95]11#include "asset.h"
12
[75]13class TileSetData;
[22]14
[95]15class TileSet : public Asset
[22]16{
17public:
[75]18    TileSet(char const *path);
[96]19    virtual ~TileSet();
[22]20
[96]21    /* Inherited from Asset */
22    virtual void TickRender(float delta_time);
23
24    /* New implementations */
[75]25    char const *GetName();
26
[79]27    void BlitTile(uint32_t id, int x, int y);
[22]28
29private:
[75]30    TileSetData *data;
[22]31};
32
[75]33#endif // __DH_TILESET_H__
[38]34
Note: See TracBrowser for help on using the repository browser.