mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-29 17:02:11 +00:00
sending danger map to the script as raw data
This commit is contained in:
@@ -31,13 +31,19 @@ namespace BBM
|
||||
|
||||
//! @brief update the raw info of the map
|
||||
void UpdateMapInfos(WAL::ViewEntity<PositionComponent, ControllableComponent, IAControllableComponent> &entity);
|
||||
|
||||
|
||||
//! @brief push danger info position
|
||||
void pushInfoDangerPos(LuaG::State &state, int &index, float xpos, float ypos);
|
||||
|
||||
//! @brief push player info
|
||||
void pushInfoPlayer(LuaG::State &state, MapInfo &player);
|
||||
|
||||
//! @brief push raw map info
|
||||
void pushInfoRaw(LuaG::State &state);
|
||||
|
||||
//! @brief push danger map info
|
||||
void pushInfoDanger(LuaG::State &state);
|
||||
|
||||
//! @brief push all the infos to the ai stack
|
||||
void pushInfo(LuaG::State &state, MapInfo &player);
|
||||
public:
|
||||
@@ -56,7 +62,5 @@ namespace BBM
|
||||
~IAControllableSystem() override = default;
|
||||
//! @brief A keyboard system is assignable.
|
||||
IAControllableSystem &operator=(const IAControllableSystem &) = default;
|
||||
|
||||
static bool isInExplosionRange(float x, float y, float z);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user