# Enum Class Phase

java.lang.Object
java.lang.Enum<Phase>
it.polimi.ingsw.is25am31.model.gameboard.Phase

All Implemented Interfaces:
  `Serializable`, `Comparable<Phase>`, `Constable`

public enum Phase extends Enum<Phase>
Enumeration representing the different phases of the game Each phase corresponds to a specific stage in the game lifecycle, from initialization to game completion

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `ASSEMBLE`
  `FLIGHT`
  `FLIGHT_ENDED`
  `INITIALIZENICKNAME`
  `NEWGAME`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Phase`
  `valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static Phase[]`
  `values()`
  Returns an array containing the constants of this enum class, in the order they are declared.

  ### Methods inherited from class java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### NEWGAME

    public static final Phase NEWGAME

  - ### INITIALIZENICKNAME

    public static final Phase INITIALIZENICKNAME

  - ### ASSEMBLE

    public static final Phase ASSEMBLE

  - ### FLIGHT

    public static final Phase FLIGHT

  - ### FLIGHT_ENDED

    public static final Phase FLIGHT_ENDED

- ## Method Details

  - ### values

    public static Phase[] 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

    public static Phase valueOf(String name)
    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 name
      `NullPointerException` - if the argument is null