Exemplo n.º 1
0
        public void Init(string mapPath, DifficultyLevel level)
        {
            if(GameValues.FFNames == null)
            {
                GameValues.FFNames = new List<string>();
                GameValues.FFNames.Add("Johny");
                GameValues.FFNames.Add("Jeff");
                GameValues.FFNames.Add("Jenny");
                GameValues.FFNames.Add("Jerry");
            }

            Map = new Map(RowsNumber, ColsNumber, mapPath, InitialMarkersCount(level));
            actionMethods = new ActionMethods(Map);

            CreateFirefighters(GameValues.FFNames);
            SceneGenerator.GenerateMap(Map, width, height, distance);

            for (int i = 0; i < Firefighters.Count; i++)
            {
                Firefighters[i].ID = i;
                (Map.Field(Map.RollD6()*2, Map.RollD8()*2) as Room).PutFirefighter(Firefighters[i]);
            }

            GameValues.CurrentFF.NewTurn();
        }
Exemplo n.º 2
0
 public ActionMethods(Map map)
 {
     this.map = map;
 }