Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Added javadoc for attributes of Player class
Browse files Browse the repository at this point in the history
  • Loading branch information
Programmer245 committed Jun 27, 2024
1 parent 01a15e3 commit 2dccbc4
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/main/java/it/polimi/ingsw/am32/model/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,49 @@ public class Player {
//---------------------------------------------------------------------------------------------
// Variables and Constants

/**
* The nickname of the player
*/
private final String nickname;
/**
* The field of the player
*/
private Field gameField;
/**
* The secret objective of the player
*/
private Card secretObjective;
/**
* The colour assigned of the player
*/
private Colour colour;
/**
* The points owned of the player
*/
private int points;
/**
* The hand of the player
*/
private ArrayList<NonObjectiveCard> hand;
/**
* The two cards that the player can choose as secret objective
*/
private final Card[] tmpSecretObj;
/**
* The points gained from the objectives
*/
private int pointsGainedFromObjectives = 0;
/**
* The state of the points gained from the objectives
*/
private final boolean[] objectivePointsState = new boolean[]{false, false};

/**
* The number of cards that the player can choose as secret objective
*/
private final static int secObjOptions = 2;

/**
* The old points of the player; used for rollback
*/
private int oldPoints;

//---------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 2dccbc4

Please sign in to comment.