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
faf6d64ce0
commit
fb05b5d6c3
13
src/lib.cpp
13
src/lib.cpp
@ -10,6 +10,19 @@ void run() {
|
|||||||
Role role2(actions);
|
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) {
|
int functionToTest(int a) {
|
||||||
return a * 2;
|
return a * 2;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,2 +1,6 @@
|
|||||||
|
#include "prep/prep.hh"
|
||||||
|
|
||||||
void run();
|
void run();
|
||||||
|
int validateAction(
|
||||||
|
Player *actor, Action *action, Room *room, std::vector<Event> *relatedEvents, Player *target = nullptr);
|
||||||
int functionToTest(int);
|
int functionToTest(int);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user