LuaDocs/MetaManager
From Data Realms Wiki
(MetaManager - Automatically generated by LuaBot) |
(MetaManager - Automatically generated by LuaBot) |
||
Line 17: | Line 17: | ||
===PlayerCount=== | ===PlayerCount=== | ||
Read-only property. Gets current number of MetaPlayersThe number of meta players in the current game. | Read-only property. Gets current number of MetaPlayersThe number of meta players in the current game. | ||
- | |||
- | |||
- | |||
Latest revision as of 08:57, 15 May 2014
Contents |
Has no parent class
Generic Class. The singleton manager of the Metagame of Cortex Command, ie the games played out in the campaign screen.
Properties
GameName
The name of the currently played Metagame. It's what's used when saving to disk.The name of the current metagame.
PlayerTurn
Read-only property. Shows which player's turn is now or coming up.The player who is currently doing his turn, or coming up next in an intermediate phase.
PlayerCount
Read-only property. Gets current number of MetaPlayersThe number of meta players in the current game.
Functions
GetTeamOfPlayer
Gets the designated team of a specific player
Arguments:
- Which player.
Return value:
The team of that player.
GetPlayer
Gets the specified MetaPlayer
Arguments:
- Which player.
Return value:
The requested MetaPlayer
GetMetaPlayerOfInGamePlayer
Gets the MetaPlayer playing a specific in-game player, if any.
Arguments:
- Which in-game player to translate into a metaplayer.
Return value:
The requested MetaPlayer, if any is playing that in-game player. If not 0 is returned.