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

map_radar.cpp File Reference
#include "stratagus.h"
#include "map.h"
#include "player.h"
#include "unittype.h"
#include "unit.h"

Functions

map_radar.cpp - The map radar handling.
static unsigned char IsTileRadarVisible (const CPlayer &pradar, const CPlayer &punit, const CMapFieldPlayerInfo &mfp)
 
void MapMarkTileRadar (const CPlayer &player, const unsigned int index)
 
void MapMarkTileRadar (const CPlayer &player, int x, int y)
 
void MapUnmarkTileRadar (const CPlayer &player, const unsigned int index)
 
void MapUnmarkTileRadar (const CPlayer &player, int x, int y)
 
void MapMarkTileRadarJammer (const CPlayer &player, const unsigned int index)
 
void MapMarkTileRadarJammer (const CPlayer &player, int x, int y)
 
void MapUnmarkTileRadarJammer (const CPlayer &player, const unsigned int index)
 
void MapUnmarkTileRadarJammer (const CPlayer &player, int x, int y)
 

Function Documentation

◆ IsTileRadarVisible()

static unsigned char IsTileRadarVisible ( const CPlayer pradar,
const CPlayer punit,
const CMapFieldPlayerInfo mfp 
)
inlinestatic

◆ MapMarkTileRadar() [1/2]

void MapMarkTileRadar ( const CPlayer player,
const unsigned int  index 
)

Mark Radar Vision for a tile

Parameters
playerThe player you are marking for
xthe X tile to mark.
ythe Y tile to mark.

◆ MapMarkTileRadar() [2/2]

void MapMarkTileRadar ( const CPlayer player,
int  x,
int  y 
)

◆ MapMarkTileRadarJammer() [1/2]

void MapMarkTileRadarJammer ( const CPlayer player,
const unsigned int  index 
)

Mark Radar Jamming Vision for a tile

Parameters
playerThe player you are marking for
xthe X tile to mark.
ythe Y tile to mark.

◆ MapMarkTileRadarJammer() [2/2]

void MapMarkTileRadarJammer ( const CPlayer player,
int  x,
int  y 
)

◆ MapUnmarkTileRadar() [1/2]

void MapUnmarkTileRadar ( const CPlayer player,
const unsigned int  index 
)

Unmark Radar Vision for a tile

Parameters
playerThe player you are marking for
xthe X tile to mark.
ythe Y tile to mark.

◆ MapUnmarkTileRadar() [2/2]

void MapUnmarkTileRadar ( const CPlayer player,
int  x,
int  y 
)

◆ MapUnmarkTileRadarJammer() [1/2]

void MapUnmarkTileRadarJammer ( const CPlayer player,
const unsigned int  index 
)

Unmark Radar Vision for a tile

Parameters
playerThe player you are marking for
xthe X tile to mark.
ythe Y tile to mark.

◆ MapUnmarkTileRadarJammer() [2/2]

void MapUnmarkTileRadarJammer ( const CPlayer player,
int  x,
int  y 
)
(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.