00001 //********************************************************************** 00002 // 00003 // REGCOM: Regimental Command 00004 // Copyright (C) 2008 Randi J. Relander 00005 // <rjrelander@users.sourceforge.net> 00006 // 00007 // This program is free software; you can redistribute it and/or 00008 // modify it under the terms of the GNU General Public License 00009 // as published by the Free Software Foundation; either version 3 00010 // of the License, or (at your option) any later version. 00011 // 00012 // This program is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public 00018 // License along with this program. If not, see 00019 // <http://www.gnu.org/licenses/>. 00020 // 00021 //********************************************************************** 00022 00023 #ifndef REGCOM_COMMON_MAP_H 00024 #define REGCOM_COMMON_MAP_H 00025 00026 // NAMESPACES 00027 namespace regcom { 00028 namespace common { 00029 00030 // FORWARD REFERENCES 00031 class Tile; 00032 00034 // CLASS: Map 00040 class Map 00041 { 00042 public: 00043 00044 // PUBLIC METHODS 00045 00047 Map(); 00048 00050 virtual ~Map(); 00051 00053 void SetSize(int x, int y); 00054 00056 int GetWidth() const { return m_Width; } 00057 00059 int GetHeight() const { return m_Height; } 00060 00062 void Clear(); 00063 00065 void FractalCreate(int maxlevel, int waterlevel); 00066 00068 Tile* GetTile(int x, int y); 00069 00070 private: 00071 00072 // MEMBER VARIABLES 00073 00075 int m_Width; 00076 00078 int m_Height; 00079 00081 Tile* m_pTile; 00082 }; 00083 00084 } // namespace common 00085 } // namespace regcom 00086 00087 #endif
Navigation
Home Page
Screen Shots
Developers
Documentation
Doxygen
Namespace List
Class List
Class Hierarchy
File List
Todo List
Links
SDL Library
License
SourceForge Project
Forums
Download
Regimental Command
Copyright © 2008
Randi J. Relander