the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 49 lines 1.3 kB view raw
1#pragma once 2 3#include "Team.h" 4 5class Scoreboard; 6 7class PlayerTeam : public Team 8{ 9public: 10 static const int MAX_NAME_LENGTH = 16; 11 static const int MAX_DISPLAY_NAME_LENGTH = 32; 12 static const int MAX_PREFIX_LENGTH = 16; 13 static const int MAX_SUFFIX_LENGTH = 16; 14 15private: 16 static const int BIT_FRIENDLY_FIRE = 0; 17 static const int BIT_SEE_INVISIBLES = 1; 18 19 Scoreboard *scoreboard; 20 wstring name; 21 unordered_set<wstring> players; 22 wstring displayName; 23 wstring prefix; 24 wstring suffix; 25 bool allowFriendlyFire; 26 bool seeFriendlyInvisibles; 27 28public: 29 PlayerTeam(Scoreboard *scoreboard, const wstring &name); 30 31 Scoreboard *getScoreboard(); 32 wstring getName(); 33 wstring getDisplayName(); 34 void setDisplayName(const wstring &displayName); 35 unordered_set<wstring> *getPlayers(); 36 wstring getPrefix(); 37 void setPrefix(const wstring &prefix); 38 wstring getSuffix(); 39 void setSuffix(const wstring &suffix); 40 wstring getFormattedName(const wstring &teamMemberName); 41 static wstring formatNameForTeam(PlayerTeam *team); 42 static wstring formatNameForTeam(Team *team, const wstring &name); 43 bool isAllowFriendlyFire(); 44 void setAllowFriendlyFire(bool allowFriendlyFire); 45 bool canSeeFriendlyInvisibles(); 46 void setSeeFriendlyInvisibles(bool seeFriendlyInvisibles); 47 int packOptions(); 48 void unpackOptions(int options); 49};