Commits

Anonymous committed 8ce0f79

...adding some thoughts on how to continue...

Comments (0)

Files changed (4)

src/com/nima/Game.java

 import java.util.Properties;
 
 public class Game {
+	
+	/*
+	 * Must:
+	 * 		keep game's current status
+	 */
+	
 	private Player[] players;
 	private GameBoard board = new GameBoard();
 	private Quest quest;
 		this.players = new Player[numberOfPlayers];
 	}
 	
-	public void startQuest(Properties questProps) throws Exception{		
+	public void startQuest(Properties questProps) throws Exception{
+		
+		/* Load Quest from file properties */
 		this.quest = new Quest(questProps.getProperty("name"), questProps.getProperty("map"),
 				questProps.getProperty("text"), questProps.getProperty("notes"));
+		
+		/* Create map */
 		this.board.configure(questProps.getProperty("map").toCharArray());
+		
+		/* Create doors */
 		this.board.setupDoors(questProps.getProperty("doors"));
+		
+		/* Create rest of data */
 		this.maxNumberOfHeroes = Integer.valueOf(questProps.getProperty("max_heroes"));
 	}
 	

src/com/nima/GameBoard.java

 package com.nima;
 
 public class GameBoard {
+	
+	/*
+	 * Must:
+	 * 		be able to provide room definitions 
+	 */
+	
 	public static final int HMAX = 26;
 	public static final int VMAX = 19;
 	

src/com/nima/Hero.java

 
 public class Hero extends Pawn {
 	
+	/*
+	 * Must:
+	 * 		keep track of available actions
+	 */
+	
 	public enum HERO_CLASS {
 		BARBARIAN, WIZARD, THIEF, RANGER;
 		public static HERO_CLASS fromChar(char c){

src/com/nima/HeroQuest.java

 		}
 		
 		System.out.println();
+		
 		//create new game
 		int numberOfPlayers = 2;
 		Game game = new Game(numberOfPlayers);
 			hero.setPosx(12);
 			hero.setPosy(0);
 			
+			// Need to write down what each class should do from now on ... !!!
+			
 			//define turns
 			//...tbd