_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          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
CMapFieldPlayerInfo Class Reference

#include <tile.h>

Public Member Functions

 CMapFieldPlayerInfo ()
 
mapfield.cpp - The map field.
bool IsExplored (const CPlayer &player) const
 Check if a field for the user is explored. More...
 
bool IsVisible (const CPlayer &player) const
 
bool IsTeamVisible (const CPlayer &player) const
 
unsigned char TeamVisibilityState (const CPlayer &player) const
 

Public Attributes

unsigned short SeenTile
 
unsigned short Visible [PlayerMax]
 last seen tile (FOW) More...
 
unsigned char VisCloak [PlayerMax]
 Seen counter 0 unexplored. More...
 
unsigned char Radar [PlayerMax]
 Visiblity for cloaking. More...
 
unsigned char RadarJammer [PlayerMax]
 Visiblity for radar. More...
 

Constructor & Destructor Documentation

◆ CMapFieldPlayerInfo()

CMapFieldPlayerInfo::CMapFieldPlayerInfo ( )
inline

Member Function Documentation

◆ IsExplored()

bool CMapFieldPlayerInfo::IsExplored ( const CPlayer player) const

Check if a field for the user is explored.

◆ IsTeamVisible()

bool CMapFieldPlayerInfo::IsTeamVisible ( const CPlayer player) const

◆ IsVisible()

bool CMapFieldPlayerInfo::IsVisible ( const CPlayer player) const
Note
Manage Map.NoFogOfWar

◆ TeamVisibilityState()

unsigned char CMapFieldPlayerInfo::TeamVisibilityState ( const CPlayer player) const

Find out how a field is seen (By player, or by shared vision)

Parameters
playerPlayer to check for.
Note
manage fogOfWar (using Map.NoFogOfWar)
Returns
0 unexplored, 1 explored, 2 visible.

Member Data Documentation

◆ Radar

unsigned char CMapFieldPlayerInfo::Radar[PlayerMax]

Visiblity for cloaking.

◆ RadarJammer

unsigned char CMapFieldPlayerInfo::RadarJammer[PlayerMax]

Visiblity for radar.

◆ SeenTile

unsigned short CMapFieldPlayerInfo::SeenTile

◆ VisCloak

unsigned char CMapFieldPlayerInfo::VisCloak[PlayerMax]

Seen counter 0 unexplored.

◆ Visible

unsigned short CMapFieldPlayerInfo::Visible[PlayerMax]

last seen tile (FOW)


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.