LuaDocs/MetaManager

From Data Realms Wiki

Jump to: navigation, search

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.

Go back to Class Index


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.


Go back to Class Index

Personal tools