Beispiel #1
0
 public Map(int totalNumberOfRooms)
 {
     p = new Player();
     r = new Random();
     pitRooms = new int[10];
     batRooms = new int[10];
     setNumberOfRooms(totalNumberOfRooms);
 }
Beispiel #2
0
        public GameControl(Vector2 WindowSize)
        {
            // GState.Game loads the game
            // GState.Menu loads the menu
            GameState = Gstate.Menu;
            MyWumpus = new Wumpus(new Vector2(Room.thisSize.Center.X - 35, Room.thisSize.Center.Y - 35), "Wumpus2_Small");
            MyTrivia = new Trivia("Chemistry");
            MyCave = new Cave1("C:\\Users\\" + username + "\\Dropbox\\WumpusTest\\WumpusTest\\WumpusTestContent\\CaveFiles\\MapDataCave1.txt");
            MyPlayer = new Player(new Vector2(WindowSize.X / 2, WindowSize.Y / 2), "Player\\Player5", 0, 10, 0, 0, 3.5f);
            MyMap = new Map(MyCave.getTotalChambers());
            MySound = new Sound();

            MyUI = new GUI();
            GameDimensions = WindowSize;
        }
        public GameControl(Vector2 WindowSize)
        {
            // GState.Game loads the game
            // GState.Menu loads the menu
            GameState = Gstate.Menu;
            MyPlayer = new Player(new Vector2(WindowSize.X/2, WindowSize.Y/2), "Player\\Player2", 0, 10, 0, 0, 3.5f);
            MyMap = new Map();
            MyWumpus = new Wumpus(Vector2.Zero, "Wumpus2_Small");
            MyTrivia = new Trivia("Chemistry");
            //UNIVERSAL TEST:
            MyCave = new Cave1("C:\\Users\\" + username + "\\Dropbox\\WumpusTest\\WumpusTest\\WumpusTestContent\\CaveFiles\\MapDataCave1.txt");
            MySound = new Sound();

            MyUI = new GUI();
            GameDimensions = WindowSize;
        }
Beispiel #4
0
 public GameState(Cave cave, Map map, Player player)
 {
     Cave = cave;
     Map = map;
     Player = player;
 }
Beispiel #5
0
 public Control()
 {
     _Player = new Player(); // Instantiate Player once control is constructed
 }