Exemple #1
0
        public Launcher(ZorkService zorkService)
        {
            this.zorkService = zorkService;

            this.zorkService.ObjectTypeServices.generateObject();
            this.zorkService.WeaponServices.generateObject();
        }
Exemple #2
0
        public Game(ZorkService zorkService, int gameId)
        {
            this.zorkService = zorkService;
            this.gameId      = gameId;
            Console.Clear();
            getObjectTypes();
            getWeapons();
            getPlayer();
            getMap();

            // If monster alive in game load the monster
            this.monsterCurrent = this.zorkService.MonsterServices.Get(gameId);
            if (this.monsterCurrent.HP > 0)
            {
                fight();
            }

            gameCell();
        }
Exemple #3
0
 public SetupGame(ZorkService zorkService)
 {
     this.zorkService = zorkService;
     generatePlayer();
 }