TT Client Library 1.0.0
C++ library for Tandem Tales clients.
Loading...
Searching...
No Matches
Role.h
1#include <string>
2
3#pragma once
4
5#ifndef ROLE_H
6#define ROLE_H
7
8namespace tt {
16 enum Role {
22
28
33 };
34
42 Role getPartner(Role role);
43
51 std::string rtos(Role role);
52
60 Role stor(std::string s);
61
69 std::ostream& operator<<(std::ostream& os, const Role& a);
70}
71
72#endif
Tandem Tales is a platform that enables short, paired storytelling exercises between two agents over ...
Definition Client.h:22
Role getPartner(Role role)
Returns the partner of this role.
Definition Role.cpp:4
Role stor(std::string s)
Returns the Role enum corresponding to the string value.
Definition Role.cpp:23
std::string rtos(Role role)
Returns the correct string value needed for the Tandem Tales Protocol for a given role value.
Definition Role.cpp:13
Role
Represents the two roles in a collaborative storytelling session: the Player, who typically controls ...
Definition Role.h:16
@ PLAYER
The player role, who controls one character, often the main character of the story.
Definition Role.h:27
@ GAME_MASTER
The game master role, who controls all characters except the player character and the environment.
Definition Role.h:21
@ NONE
No role, used as a "null" value.
Definition Role.h:32
std::ostream & operator<<(std::ostream &os, const Client &a)
Override stream insertion operator to allow printing the Client class.
Definition Client.cpp:556