#include <LuaMap.hpp>
◆ LuaMap()
◆ ~LuaMap()
◆ canPutBomb()
| int BBM::LuaMap::canPutBomb |
( |
lua_State * |
L | ) |
|
|
static |
Check if current player can put a bomb with an escape.
◆ clearDanger()
| void BBM::LuaMap::clearDanger |
( |
void |
| ) |
|
◆ fillPath()
◆ findSafeSpace()
| Vector2f BBM::LuaMap::findSafeSpace |
( |
const std::vector< std::vector< int >> & |
dangerMap | ) |
const |
find a safe space for current player
◆ getBlockType()
| int BBM::LuaMap::getBlockType |
( |
lua_State * |
L | ) |
|
|
static |
◆ getClosestSafeSpace()
| int BBM::LuaMap::getClosestSafeSpace |
( |
lua_State * |
L | ) |
|
|
static |
get closest safe space of player
◆ getDanger()
| int BBM::LuaMap::getDanger |
( |
lua_State * |
L | ) |
|
|
static |
push table of table of the danger map
◆ getDangerLevel()
| int BBM::LuaMap::getDangerLevel |
( |
lua_State * |
L | ) |
|
|
static |
◆ getDangerLevelPlayer()
| int BBM::LuaMap::getDangerLevelPlayer |
( |
lua_State * |
L | ) |
|
|
static |
get danger level of player
◆ getEnemies()
| int BBM::LuaMap::getEnemies |
( |
lua_State * |
L | ) |
|
|
static |
◆ getEnemiesRound()
| int BBM::LuaMap::getEnemiesRound |
( |
lua_State * |
L | ) |
|
|
static |
Get enemies position rounded.
◆ getMap()
| int BBM::LuaMap::getMap |
( |
lua_State * |
L | ) |
|
|
static |
push table of table of the map
◆ getNeighbors()
| std::vector< Vector2f > BBM::LuaMap::getNeighbors |
( |
Vector2f |
node, |
|
|
bool |
throughBreakable |
|
) |
| const |
|
private |
get neighbors of node for a_star
◆ getPath()
| int BBM::LuaMap::getPath |
( |
lua_State * |
L | ) |
|
|
static |
get array of nodes, path from a to b
◆ getPlayer()
| int BBM::LuaMap::getPlayer |
( |
lua_State * |
L | ) |
|
|
static |
◆ getPlayerRound()
| int BBM::LuaMap::getPlayerRound |
( |
lua_State * |
L | ) |
|
|
static |
◆ getRadius()
| int BBM::LuaMap::getRadius |
( |
lua_State * |
L | ) |
|
|
static |
Get current explosion radius of the player.
◆ pathfind()
A star pathfinding between two points.
◆ setDanger()
| bool BBM::LuaMap::setDanger |
( |
int |
xpos, |
|
|
int |
ypos, |
|
|
int |
dangerLevel |
|
) |
| |
set dangerlevel at xpos ypos
◆ setPlayer()
| void BBM::LuaMap::setPlayer |
( |
Vector3f |
pos | ) |
|
◆ _danger
| std::vector<std::vector<int> > BBM::LuaMap::_danger |
◆ _dirs
| std::vector<Vector2f> BBM::LuaMap::_dirs |
|
private |
◆ _enemies
| std::vector<Vector2f> BBM::LuaMap::_enemies |
◆ _map
| std::vector<std::vector<int> > BBM::LuaMap::_map |
◆ _player
◆ _roundedPlayer
◆ currRadius
| int BBM::LuaMap::currRadius |
Explosion radius of current player.
The documentation for this class was generated from the following files: