testing-spring-2024/src/lib.hh
2024-03-12 22:39:51 +02:00

9 lines
352 B
C++

#include "prep/prep.hh"
void run();
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);