diff options
author | andrew <xdotftw@gmail.com> | 2014-03-01 13:27:55 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-01 13:27:55 +0100 |
commit | 39c8e68ef030b70f1f50165e74d26100bc1988cc (patch) | |
tree | c99189a7f33d75f61b81cf0e8a2e8e7b5755236e /src/Scoreboard.h | |
parent | Shortened enums (diff) | |
download | cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.gz cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.bz2 cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.lz cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.xz cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.zst cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.zip |
Diffstat (limited to 'src/Scoreboard.h')
-rw-r--r-- | src/Scoreboard.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Scoreboard.h b/src/Scoreboard.h index 2abd1564b..e22ecaeb1 100644 --- a/src/Scoreboard.h +++ b/src/Scoreboard.h @@ -14,9 +14,11 @@ class cObjective; +class cTeam; class cWorld; typedef cItemCallback<cObjective> cObjectiveCallback; +typedef cItemCallback<cTeam> cTeamCallback; @@ -170,6 +172,11 @@ public: // tolua_end + static const char * GetClassStatic(void) // Needed for ManualBindings's ForEach templates + { + return "cTeam"; + } + private: typedef std::set<AString> cPlayerNameSet; @@ -260,10 +267,16 @@ public: /** Execute callback for each objective. * - * Returns true if all objectives processed, false if the callback aborted by returning true. + * Returns true if all objectives have been processed, false if the callback aborted by returning true. */ bool ForEachObjective(cObjectiveCallback& a_Callback); // Exported in ManualBindings.cpp + /** Execute callback for each team. + * + * Returns true if all teams have been processed, false if the callback aborted by returning true. + */ + bool ForEachTeam(cTeamCallback& a_Callback); // Exported in ManualBindings.cpp + void SetDisplay(cObjective * a_Objective, eDisplaySlot a_Slot); |