# Class CurrentPhase

java.lang.Object
it.polimi.ingsw.is25am31.model.gameboard.CurrentPhase

public class CurrentPhase extends Object
The CurrentPhase class represents the current phase of a game. It allows getting and setting the active phase, which is defined using the `Phase` enumeration.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CurrentPhase(Phase phase)`
  Constructs a new CurrentPhase with the specified initial phase.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Phase`
  `getPhase()`
  Returns the current phase of the game.
  `void`
  `setPhase(Phase phase)`
  Sets the current phase of the game.

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

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CurrentPhase

    public CurrentPhase(Phase phase)
    Constructs a new CurrentPhase with the specified initial phase.
    Parameters:
      `phase` - the initial phase to set for the game

- ## Method Details

  - ### getPhase

    public Phase getPhase()
    Returns the current phase of the game.
    Returns:
      the current phase

  - ### setPhase

    public void setPhase(Phase phase)
    Sets the current phase of the game.
    Parameters:
      `phase` - the new phase to set