comparison import/myrrdin/tilemap.d @ 6:510541745cd1

turned myrrdin into package.
author fred@reichbier.de
date Sat, 19 Jul 2008 15:10:56 +0200
parents f4b89014ad39
children 806b3781f4e4
comparison
equal deleted inserted replaced
5:f4b89014ad39 6:510541745cd1
1 /* 1 /*
2 This file is part of myrrdin. 2 myrrdin, a 2d tile engine
3 Copyright (c) 2008 Friedrich Weber
3 4
4 myrrdin is free software: you can redistribute it and/or modify 5 Permission is hereby granted, free of charge, to any person obtaining a copy
5 it under the terms of the GNU Lesser General Public License as 6 of this software and associated documentation files (the Software), to deal
6 published by the Free Software Foundation, either version 3 of 7 in the Software without restriction, including without limitation the rights
7 the License, or (at your option) any later version. 8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
8 11
9 myrrdin is distributed in the hope that it will be useful, 12 The above copyright notice and this permission notice shall be included in
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 all copies or substantial portions of the Software.
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13 14
14 You should have received a copy of the GNU Lesser General Public 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 License along with myrrdin. If not, see <http://www.gnu.org/licenses/>. 16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 */ 17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 THE SOFTWARE.
22 */
17 23
18 module tilemap; 24 module tilemap;
19 25
20 import tango.math.Math; 26 import tango.math.Math;
21 27
22 import dsfml.window.all; 28 import dsfml.window.all;
23 import dsfml.system.all; 29 import dsfml.system.all;
24 import dsfml.graphics.all; 30 import dsfml.graphics.all;
25 31
26 import tileset; 32 import myrrdin.tileset;
27 import tango.io.Stdout; 33 import tango.io.Stdout;
28 34
29 typedef Sprite[] SpriteArray; 35 typedef Sprite[] SpriteArray;
30 36
31 class Tilemap { 37 class Tilemap {