summaryrefslogtreecommitdiffstats
path: root/src/Scoreboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Scoreboard.h')
-rw-r--r--src/Scoreboard.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Scoreboard.h b/src/Scoreboard.h
index b92642a9a..11b456739 100644
--- a/src/Scoreboard.h
+++ b/src/Scoreboard.h
@@ -22,10 +22,13 @@ typedef cItemCallback<cObjective> cObjectiveCallback;
+// tolua_begin
class cObjective
{
public:
+ // tolua_end
+
typedef int Score;
enum eType
@@ -82,6 +85,9 @@ public:
void SetDisplayName(const AString & a_Name);
+ /// Send this objective to the specified client
+ void SendTo(cClientHandle & a_Client);
+
private:
typedef std::pair<AString, Score> cTrackedPlayer;
@@ -105,10 +111,13 @@ private:
+// tolua_begin
class cTeam
{
public:
+ // tolua_end
+
cTeam(
const AString & a_Name, const AString & a_DisplayName,
const AString & a_Prefix, const AString & a_Suffix
@@ -169,10 +178,13 @@ private:
+// tolua_begin
class cScoreboard
{
public:
+ // tolua_end
+
enum eDisplaySlot
{
E_DISPLAY_SLOT_LIST = 0,
@@ -209,11 +221,16 @@ public:
void SetDisplay(const AString & a_Objective, eDisplaySlot a_Slot);
+ void SetDisplay(cObjective * a_Objective, eDisplaySlot a_Slot);
+
cObjective * GetObjectiveIn(eDisplaySlot a_Slot);
/// Execute callback for each objective with the specified type
void ForEachObjectiveWith(cObjective::eType a_Type, cObjectiveCallback& a_Callback);
+ /// Send this scoreboard to the specified client
+ void SendTo(cClientHandle & a_Client);
+
unsigned int GetNumObjectives(void) const;
unsigned int GetNumTeams(void) const;