Coverage Summary for Class: EventType (it.polimi.ingsw.gc14.Network)
| Class |
Class, %
|
Method, %
|
Line, %
|
| EventType |
0%
(0/1)
|
0%
(0/4)
|
0%
(0/16)
|
package it.polimi.ingsw.gc14.Network;
/**
* Represents the different types of network events that can be sent between
* client and server.
*/
public enum EventType {
/**
* Event used to add a player to the game.
*/
ADD_PLAYER("Add Player Event"),
/**
* Event used to submit a player's totem choice.
*/
TOTEM_CHOICE("Totem Choice"),
/**
* Event used to submit a player's slot choice.
*/
SLOT_CHOICE("Slot Choice"),
/**
* Event used to draw a tribe card from the upper card list.
*/
DRAW_UPPER_TRIBE("Drawing Upper Tribe"),
/**
* Event used to draw a tribe card from the lower card list.
*/
DRAW_LOWER_TRIBE("Drawing Lower Tribe"),
/**
* Event used to draw a building card from the upper card list.
*/
DRAW_UPPER_BUILD("Drawing Upper Build"),
/**
* Event used to draw a building card from the lower card list.
*/
DRAW_LOWER_BUILD("Drawing Lower Build"),
/**
* Event used to skip the current turn or optional action.
*/
SKIP_TURN("Skip Turn"),
/**
* Event used to notify that a player has disconnected.
*/
DISCONNECTED_PLAYER("Disconnected Player"),
/**
* Event used to notify that a player has reconnected.
*/
RECONNECT_PLAYER("Reconnect Player"),
/**
* Event used to apply the transition to the next round.
*/
NEXT_ROUND("Next Round"),
/**
* Event used to notify that the game has ended.
*/
ENDED_GAME("Ended Game");
/** Human-readable label for this event type, returned by {@link #toString()}. */
private final String description;
EventType(String description) {
this.description = description;
}
@Override
public String toString() {
return description;
}
}