testing-spring-2024/src/lib.hh
2024-03-14 00:48:16 +02:00

10 lines
400 B
C++

#include "action.hh"
#include "player.hh"
#include "prep/prep.hh"
#include "role.hh"
bool playerBelongsToRoom(Player *player, Room *room);
bool actionBelongsToRole(Role *role, const Action *action);
bool isActionAllowed(const Action *action, std::vector<Event> *relevantEvents);
int validateAction(Player *actor, const Action *action, Room *room, std::vector<Event> *relatedEvents, Player *target);