#include <PositionMap.h>
|
virtual int | GetMapValue (unsigned a_x, unsigned a_y) |
|
virtual void | SetMapValue (unsigned a_x, unsigned a_y, int a_value) |
|
virtual void | ClearMapValue (unsigned a_x, unsigned a_y) |
|
virtual void | IncMapValue (unsigned a_x, unsigned a_y) |
|
virtual void | DecMapValue (unsigned a_x, unsigned a_y) |
|
virtual int | GetMapDensity (unsigned a_x, unsigned a_y, unsigned a_range) |
|
virtual int | GetMapDensityEdge (unsigned a_x, unsigned a_y, unsigned a_range) |
|
virtual bool | GetMapPositive (unsigned a_x, unsigned a_y, unsigned a_range) |
|
virtual int | SumMap () |
|
| SimplePositionMapInt () |
|
| SimplePositionMapInt (Landscape *L) |
|
virtual | ~SimplePositionMapInt () |
|
◆ SimplePositionMapInt() [1/2]
SimplePositionMapInt::SimplePositionMapInt |
( |
| ) |
|
◆ SimplePositionMapInt() [2/2]
SimplePositionMapInt::SimplePositionMapInt |
( |
Landscape * |
L | ) |
|
◆ ~SimplePositionMapInt()
SimplePositionMapInt::~SimplePositionMapInt |
( |
| ) |
|
|
virtual |
◆ ClearMapValue()
virtual void SimplePositionMapInt::ClearMapValue |
( |
unsigned |
a_x, |
|
|
unsigned |
a_y |
|
) |
| |
|
inlinevirtual |
◆ DecMapValue()
virtual void SimplePositionMapInt::DecMapValue |
( |
unsigned |
a_x, |
|
|
unsigned |
a_y |
|
) |
| |
|
inlinevirtual |
◆ GetMapDensity()
virtual int SimplePositionMapInt::GetMapDensity |
( |
unsigned |
a_x, |
|
|
unsigned |
a_y, |
|
|
unsigned |
a_range |
|
) |
| |
|
inlinevirtual |
140 for (
unsigned x = a_x; x <a_x+a_range; x++)
144 for (
unsigned y = a_y; y < a_y+a_range; y++){
References m_maxx, m_maxy, and m_TheMapSpmi.
◆ GetMapDensityEdge()
virtual int SimplePositionMapInt::GetMapDensityEdge |
( |
unsigned |
a_x, |
|
|
unsigned |
a_y, |
|
|
unsigned |
a_range |
|
) |
| |
|
inlinevirtual |
157 for (
unsigned x = a_x; x < a_x + a_range; x++)
159 for (
unsigned y = a_y; y < a_y + a_range; y++)
References m_maxx, m_maxy, and m_TheMapSpmi.
◆ GetMapPositive()
virtual bool SimplePositionMapInt::GetMapPositive |
( |
unsigned |
a_x, |
|
|
unsigned |
a_y, |
|
|
unsigned |
a_range |
|
) |
| |
|
inlinevirtual |
166 for (
unsigned x = a_x; x < a_x + a_range; x++)
168 for (
unsigned y = a_y; y < a_y + a_range; y++)
References m_maxx, and m_TheMapSpmi.
◆ GetMapValue()
virtual int SimplePositionMapInt::GetMapValue |
( |
unsigned |
a_x, |
|
|
unsigned |
a_y |
|
) |
| |
|
inlinevirtual |
◆ IncMapValue()
virtual void SimplePositionMapInt::IncMapValue |
( |
unsigned |
a_x, |
|
|
unsigned |
a_y |
|
) |
| |
|
inlinevirtual |
◆ SetMapValue()
virtual void SimplePositionMapInt::SetMapValue |
( |
unsigned |
a_x, |
|
|
unsigned |
a_y, |
|
|
int |
a_value |
|
) |
| |
|
inlinevirtual |
◆ SumMap()
virtual int SimplePositionMapInt::SumMap |
( |
| ) |
|
|
inlinevirtual |
Used as a debug test to be sure all additions/deletions are done correctly.
180 for (
unsigned i = 0; i < sz; i++) nos +=
m_TheMapSpmi[i];
References m_maxx, m_maxy, and m_TheMapSpmi.
◆ m_maxx
unsigned int SimplePositionMapInt::m_maxx |
◆ m_maxy
unsigned int SimplePositionMapInt::m_maxy |
◆ m_TheMapSpmi
vector<int> SimplePositionMapInt::m_TheMapSpmi |
The documentation for this class was generated from the following files: