source: trunk/src/layer.h @ 2394

Last change on this file since 2394 was 2183, checked in by sam, 7 years ago

build: fix the WTFPL site URL in all code comments.

  • Property svn:keywords set to Id
File size: 780 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11//
12// The Layer class
13// ---------------
14// A Layer object is a subset of a Map.
15//
16
17#if !defined __LOL_LAYER_H__
18#define __LOL_LAYER_H__
19
20#include <stdint.h>
21
22namespace lol
23{
24
25class Layer
26{
27public:
28    Layer(int w, int h, int z, int o, uint32_t *data);
29    ~Layer();
30
31    int GetZ();
32
33    void Render(int x, int y, int z);
34
35private:
36    int width, height, altitude, orientation;
37    uint32_t *data;
38};
39
40} /* namespace lol */
41
42#endif // __LOL_LAYER_H__
43
Note: See TracBrowser for help on using the repository browser.