Package com.minigameworld.frames
Enum Class TeamBattleMiniGame.TeamRegisterMode
java.lang.Object
java.lang.Enum<TeamBattleMiniGame.TeamRegisterMode>
com.minigameworld.frames.TeamBattleMiniGame.TeamRegisterMode
- All Implemented Interfaces:
Serializable
,Comparable<TeamBattleMiniGame.TeamRegisterMode>
,Constable
- Enclosing class:
- TeamBattleMiniGame
public static enum TeamBattleMiniGame.TeamRegisterMode
extends Enum<TeamBattleMiniGame.TeamRegisterMode>
Team register mode
- Participants divied into teams when game starts with mode
- If use TeamRegisterMode.NONE, should register players to team with registerPlayersToTeam()
[Team Register Mode]
- NONE, FAIR, FILL, FAIR_FILL, RANDOM or can divide overriding "registerPlayersToTeam()"
- e.g. playerCount: 13, teamMaxPlayerCount: 5, teamCount: 4
- NONE: no divide (use
- FAIR: all teams have the same player count fairly (= maximun team count) (4, 3, 3, 3)
- FILL: fulfill teams as possible from first (= minimum team count) (5, 5, 3, 0)
- FAIR_FILL: FILL fairly (5, 4, 4, 0)
- RANDOM: random (?, ?, ?, ?)
- PARTY: party members become the same team (only "max-players / team-size" party can join the game)
- Participants divied into teams when game starts with mode
- If use TeamRegisterMode.NONE, should register players to team with registerPlayersToTeam()
[Team Register Mode]
- NONE, FAIR, FILL, FAIR_FILL, RANDOM or can divide overriding "registerPlayersToTeam()"
- e.g. playerCount: 13, teamMaxPlayerCount: 5, teamCount: 4
- NONE: no divide (use
TeamBattleMiniGame.registerPlayersToTeam()
)- FAIR: all teams have the same player count fairly (= maximun team count) (4, 3, 3, 3)
- FILL: fulfill teams as possible from first (= minimum team count) (5, 5, 3, 0)
- FAIR_FILL: FILL fairly (5, 4, 4, 0)
- RANDOM: random (?, ?, ?, ?)
- PARTY: party members become the same team (only "max-players / team-size" party can join the game)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TeamBattleMiniGame.TeamRegisterMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
FAIR
-
FILL
-
FAIR_FILL
-
RANDOM
-
PARTY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-