mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2025-10-21 20:10:36 +00:00
feat[lib]: function placeholder
This commit is contained in:
parent
30eef4d797
commit
6aea36d05b
13
src/lib.cpp
13
src/lib.cpp
@ -10,6 +10,19 @@ void run() {
|
||||
Role role2(actions);
|
||||
}
|
||||
|
||||
enum VALIDATION_STATUS {
|
||||
NO_PLAYER,
|
||||
ROOM_NOT_IN_PROGRESS,
|
||||
ACTION_PROHIBITED,
|
||||
ACTION_NOT_ALLOWED,
|
||||
ACTION_VALID,
|
||||
};
|
||||
|
||||
int validateAction(
|
||||
Player *actor, Action *action, Room *room, std::vector<Event> *relatedEvents, Player *target = nullptr) {
|
||||
return ACTION_VALID;
|
||||
}
|
||||
|
||||
int functionToTest(int a) {
|
||||
return a * 2;
|
||||
}
|
||||
|
||||
@ -1,2 +1,6 @@
|
||||
#include "prep/prep.hh"
|
||||
|
||||
void run();
|
||||
int validateAction(
|
||||
Player *actor, Action *action, Room *room, std::vector<Event> *relatedEvents, Player *target = nullptr);
|
||||
int functionToTest(int);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user