_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Public Attributes | List of all members
CMapInfo Class Reference

#include <map.h>

Public Member Functions

bool IsPointOnMap (int x, int y) const
 
bool IsPointOnMap (const Vec2i &pos) const
 
map.cpp - The map.
void Clear ()
 

Public Attributes

std::string Description
 
std::string Filename
 Map description. More...
 
std::string Preamble
 Map filename. More...
 
std::string Postamble
 Map preamble script. More...
 
int MapWidth
 Map postamble script. More...
 
int MapHeight
 Map width. More...
 
PlayerTypes PlayerType [PlayerMax]
 Map height. More...
 
int PlayerSide [PlayerMax]
 Same player->Type. More...
 
unsigned int MapUID
 Same player->Side. More...
 

Detailed Description

Get info about a map.

Member Function Documentation

◆ Clear()

void CMapInfo::Clear ( )

Clear CMapInfo.

◆ IsPointOnMap() [1/2]

bool CMapInfo::IsPointOnMap ( const Vec2i pos) const
inline

◆ IsPointOnMap() [2/2]

bool CMapInfo::IsPointOnMap ( int  x,
int  y 
) const
inline

Member Data Documentation

◆ Description

std::string CMapInfo::Description

◆ Filename

std::string CMapInfo::Filename

Map description.

◆ MapHeight

int CMapInfo::MapHeight

Map width.

◆ MapUID

unsigned int CMapInfo::MapUID

Same player->Side.

◆ MapWidth

int CMapInfo::MapWidth

Map postamble script.

◆ PlayerSide

int CMapInfo::PlayerSide[PlayerMax]

Same player->Type.

◆ PlayerType

PlayerTypes CMapInfo::PlayerType[PlayerMax]

Map height.

◆ Postamble

std::string CMapInfo::Postamble

Map preamble script.

◆ Preamble

std::string CMapInfo::Preamble

Map filename.


The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.