Class Mix

Class Mix

Methods

Mix:init (id, Rounds, NomberPlayers, Map, TillEnd, KnifeRound) Constructors
Mix:getState () Getters - Setters
Mix:getRegistPlayers () Getters - Setters
Mix:getNumberRegist () Getters - Setters
Mix:addRegistPlayer (Player) addRegistPlayer add a player to the registrated list
Mix:existPlayerRegist (Player) existPlayerRegist check if the player is in the registrated list
Mix:getPlayerRegist (Player) getPlayerRegist get the player in the registrated list
Mix:checkStartMix () checkStartMix check if the mix can be started
Mix:removeRegistPlayer (Player) removeRegistPlayer remove the player in the registrated list
Mix:getObjectKniferound () Getters - Setters
Mix:getObjectChooseside () Getters - Setters
Mix:setState (state) Getters - Setters
Mix:getcptRounds () Getters - Setters
Mix:setcptRounds (cptRounds) Getters - Setters
Mix:getRounds () Getters - Setters
Mix:getNomberPlayers () Getters - Setters
Mix:getMap () Getters - Setters
Mix:getTillEnd () Getters - Setters
Mix:getKnifeRound () Getters - Setters
Mix:getTeams () Getters - Setters
Mix:addTeam (Team) Getters - Setters
Mix:NumbersTeams () Getters - Setters
Mix:SwitchTeams () SwitchTeams switch teams
Mix:getRoundsRemain () getRoundsRemain calculate the number of round remained before setting an other state to the mix note : mix should have started
Mix:start () start start the mix; change in game settings
Mix:showString () showString still used to concat all the info of a mix into a string note : should be devaluated to the GUI
Mix:makeTeams (Teamtt, Teamct) makeTeams makes team regarding the ranks of registrated players
Mix:getMaxRank (choosedPlayers) getMaxRank get the max rank from this list
Mix:playerLeave (id) playerLeave remove a player from the current mix when he leave the server
Mix:testEmply () testEmply remove a mix if this mix got no player


Methods

Mix:init (id, Rounds, NomberPlayers, Map, TillEnd, KnifeRound)
Constructors

Parameters:

  • id id of the layout
  • Rounds number of round this mix have
  • NomberPlayers nnomber of player this mix have
  • Map name of the map
  • TillEnd boolean to play till the end
  • KnifeRound boolean for kniferound
Mix:getState ()
Getters - Setters
Mix:getRegistPlayers ()
Getters - Setters
Mix:getNumberRegist ()
Getters - Setters
Mix:addRegistPlayer (Player)
addRegistPlayer add a player to the registrated list

Parameters:

  • Player add a player to the registrated list
Mix:existPlayerRegist (Player)
existPlayerRegist check if the player is in the registrated list

Parameters:

  • Player check if the player is in the registrated list
Mix:getPlayerRegist (Player)
getPlayerRegist get the player in the registrated list

Parameters:

  • Player get the player in the registrated list
Mix:checkStartMix ()
checkStartMix check if the mix can be started
Mix:removeRegistPlayer (Player)
removeRegistPlayer remove the player in the registrated list

Parameters:

  • Player remove the player in the registrated list
Mix:getObjectKniferound ()
Getters - Setters
Mix:getObjectChooseside ()
Getters - Setters
Mix:setState (state)
Getters - Setters

Parameters:

  • state
Mix:getcptRounds ()
Getters - Setters
Mix:setcptRounds (cptRounds)
Getters - Setters

Parameters:

  • cptRounds
Mix:getRounds ()
Getters - Setters
Mix:getNomberPlayers ()
Getters - Setters
Mix:getMap ()
Getters - Setters
Mix:getTillEnd ()
Getters - Setters
Mix:getKnifeRound ()
Getters - Setters
Mix:getTeams ()
Getters - Setters
Mix:addTeam (Team)
Getters - Setters

Parameters:

  • Team
Mix:NumbersTeams ()
Getters - Setters
Mix:SwitchTeams ()
SwitchTeams switch teams
Mix:getRoundsRemain ()
getRoundsRemain calculate the number of round remained before setting an other state to the mix note : mix should have started
Mix:start ()
start start the mix; change in game settings
Mix:showString ()
showString still used to concat all the info of a mix into a string note : should be devaluated to the GUI
Mix:makeTeams (Teamtt, Teamct)
makeTeams makes team regarding the ranks of registrated players

Parameters:

  • Teamtt
  • Teamct
Mix:getMaxRank (choosedPlayers)
getMaxRank get the max rank from this list

Parameters:

  • choosedPlayers list of choosed played from the registrated player list
Mix:playerLeave (id)
playerLeave remove a player from the current mix when he leave the server

Parameters:

  • id id of the player
Mix:testEmply ()
testEmply remove a mix if this mix got no player
generated by LDoc 1.4.3 Last updated 2015-11-11 13:48:25