Bläddra i källkod

Small comment changes for doxygen

tags/v1.0
Christos Houtouridis 6 år sedan
förälder
incheckning
46137acf3c
6 ändrade filer med 14 tillägg och 14 borttagningar
  1. +1
    -1
      src/net/hoo2/auth/dsproject/snake/Apple.java
  2. +2
    -2
      src/net/hoo2/auth/dsproject/snake/Board.java
  3. +8
    -8
      src/net/hoo2/auth/dsproject/snake/Game.java
  4. +1
    -1
      src/net/hoo2/auth/dsproject/snake/Ladder.java
  5. +1
    -1
      src/net/hoo2/auth/dsproject/snake/Player.java
  6. +1
    -1
      src/net/hoo2/auth/dsproject/snake/Snake.java

+ 1
- 1
src/net/hoo2/auth/dsproject/snake/Apple.java Visa fil

@@ -10,7 +10,7 @@ import java.lang.Math;
* Each apple have a point contribution to the user and can be eaten once
* The point system is algebraic in order to simplify calculation.
*
* @author Christos Choutouridis 8997
* @author Christos Choutouridis AEM:8997
* @email cchoutou@ece.auth.gr
*/
public class Apple {


+ 2
- 2
src/net/hoo2/auth/dsproject/snake/Board.java Visa fil

@@ -11,11 +11,11 @@ import java.lang.Math;
* and apples which we called elements are placed on the board
* for each game.
*
* @author Christos Choutouridis 8997
* @author Christos Choutouridis AEM:8997
* @email cchoutou@ece.auth.gr
*/
public class Board {
/** Constants */
/** @name Constants */
/**@{ */
static final int POINTS_MAX = 20; /**< The maximum absolute number of points for each apple */
static final int POINTS_STEP = 5; /**< The difference between different apple points */


+ 8
- 8
src/net/hoo2/auth/dsproject/snake/Game.java Visa fil

@@ -10,7 +10,7 @@ package net.hoo2.auth.dsproject.snake;
* * All member functions
* * All data members
*
* @author Christos Choutouridis 8997
* @author Christos Choutouridis AEM:8997
* @email cchoutou@ece.auth.gr
*/
@@ -25,24 +25,24 @@ import java.util.ArrayList;
* This class includes the main function.Using this class's api
* the user can create a board, register players and roll the game.
*
* @author Christos Choutouridis 8997
* @author Christos Choutouridis AEM:8997
* @email cchoutou@ece.auth.gr
*/
public class Game {
/** Constants */
/** @name Constants */
/**@{ */
static final int MAX_PLAYERS = 4; /**< The maximum number of allowed players in the game */
static final int MAX_GAME_ROUNDS = 10000; /**< the maximum allowed round of the game */
/**@} */
/** Private data members */
/** @name Private data members */
/** @{ */
private int round; /**< The current round of the game */
private Board board; /**< A reference to board */
private ArrayList<Player> players; /**< A reference to players */
/** @} */
/** private api */
/** @name private api */
/** @{ */
/**
* Dice functionality
@@ -68,7 +68,7 @@ public class Game {
/** @} */
/** Constructors */
/** @name Constructors */
/** @{ */
/** Default doing nothing constructor */
Game () {
@@ -95,7 +95,7 @@ public class Game {
}
/** @} */
/** Get/Set interface */
/** @name Get/Set interface */
/** @{ */
int getRound () { return round; }
void setRound (int round) { this.round = round; }
@@ -120,7 +120,7 @@ public class Game {
}
/** @} */
/** Public functionality */
/** @name Public functionality */
/** @{ */
/**
* Register a player to the game


+ 1
- 1
src/net/hoo2/auth/dsproject/snake/Ladder.java Visa fil

@@ -7,7 +7,7 @@ package net.hoo2.auth.dsproject.snake;
* Ladders are part of the elements we place on the board.
* They help the user to elevate rows. Each ladder can be used only once.
*
* @author Christos Choutouridis 8997
* @author Christos Choutouridis AEM:8997
* @email cchoutou@ece.auth.gr
*/
public class Ladder {


+ 1
- 1
src/net/hoo2/auth/dsproject/snake/Player.java Visa fil

@@ -7,7 +7,7 @@ package net.hoo2.auth.dsproject.snake;
* The players are playing in a round-robin sequence and we keep track
* for each one of them their playing order, score and place on the board.
*
* @author Christos Choutouridis 8997
* @author Christos Choutouridis AEM:8997
* @email cchoutou@ece.auth.gr
*/
public class Player {


+ 1
- 1
src/net/hoo2/auth/dsproject/snake/Snake.java Visa fil

@@ -7,7 +7,7 @@ package net.hoo2.auth.dsproject.snake;
* Snakes are part of the elements we place on the board and they add
* difficulty to the game.
*
* @author Christos Choutouridis 8997
* @author Christos Choutouridis AEM:8997
* @email cchoutou@ece.auth.gr
*/
public class Snake {


Laddar…
Avbryt
Spara