bwmodel
A modeling environment for Minecraft Bedwars
Loading...
Searching...
No Matches
gamedelegate.h
1// Copyright (C) 2024 Ethan Uppal. All rights reserved.
2
3#pragma once
4
5#include "game/player.h"
6#include "game/map.h"
7
8namespace bwmodel {
9 class Game;
10
13 public:
15 virtual void on_game_start(const Game& game) = 0;
16
18 virtual void on_players_match(const Game& game, PlayerColor victor,
19 PlayerColor loser, bool was_final) = 0;
20
22 virtual void on_bed_broken(const Game& game, PlayerColor breaker,
23 PlayerColor bed) = 0;
24
26 virtual void on_game_end(const Game& game) = 0;
27
30 virtual void tick(const Game& game) = 0;
31
33 virtual void on_player_move(const Game& game, int x, int y);
34
36 virtual void on_player_sight(const Game& game, PlayerColor spotted,
37 RegionSet location);
38 };
39}
Definition gamedelegate.h:12
virtual void on_player_sight(const Game &game, PlayerColor spotted, RegionSet location)
Definition gamedelegate.cpp:8
virtual void on_game_end(const Game &game)=0
virtual void on_players_match(const Game &game, PlayerColor victor, PlayerColor loser, bool was_final)=0
virtual void on_game_start(const Game &game)=0
virtual void tick(const Game &game)=0
virtual void on_bed_broken(const Game &game, PlayerColor breaker, PlayerColor bed)=0
virtual void on_player_move(const Game &game, int x, int y)
Definition gamedelegate.cpp:6
Definition game.h:37