|
bwmodel
A modeling environment for Minecraft Bedwars
|
#include <gamedelegate.h>
Public Member Functions | |
| virtual void | on_game_start (const Game &game)=0 |
| virtual void | on_players_match (const Game &game, PlayerColor victor, PlayerColor loser, bool was_final)=0 |
| virtual void | on_bed_broken (const Game &game, PlayerColor breaker, PlayerColor bed)=0 |
| virtual void | on_game_end (const Game &game)=0 |
| virtual void | tick (const Game &game)=0 |
| virtual void | on_player_move (const Game &game, int x, int y) |
| virtual void | on_player_sight (const Game &game, PlayerColor spotted, RegionSet location) |
An interface for game events.
|
pure virtual |
Called when breaker has broken bed.
Implemented in bwmodel::Model::v1.
|
pure virtual |
Called when the game ends.
Implemented in bwmodel::Model::v1.
|
pure virtual |
Called when the game is initialized.
Implemented in bwmodel::Model::v1.
|
virtual |
Called when the player position are updated.
|
virtual |
Called when the player sees player spotted at location.
|
pure virtual |
Called when victor has defeated loser.
Implemented in bwmodel::Model::v1.
|
pure virtual |
Called repeatedly from after on_game_start until before on_game_end.
Implemented in bwmodel::Model::v1.