예제 #1
0
 public void MoveNorth()
 {
     if (HasLocationToNorth)
     {
         CurrentLocation = CurrentWorld.locationAt(CurrentLocation.XCoordinate, CurrentLocation.YCoordinate + 1);
     }
 }
예제 #2
0
 public void MoveWest()
 {
     if (HasLocationToWest)
     {
         CurrentLocation = CurrentWorld.locationAt(CurrentLocation.XCoordinate - 1, CurrentLocation.YCoordinate);
     }
 }
예제 #3
0
        public GameSession()
        {
            CurrentPlayer = new Player
            {
                Name             = "Bob the Jittery",
                CharacterClass   = "Berserker",
                HitPoints        = 10,
                Gold             = 1000000,
                ExperiencePoints = 0,
                Level            = 1
            };



            CurrentWorld = WorldFactory.CreateWorld();

            CurrentLocation = CurrentWorld.locationAt(0, 0);
        }
예제 #4
0
        public GameSession()
        {
            CurrentPlayer         = new Player();
            CurrentPlayer.Name    = "Noah";
            CurrentPlayer.Level   = "Beginner";
            CurrentPlayer.Fortune = "10000";



            WorldFactory factory = new WorldFactory();

            CurrentWorld = factory.CreatedWord();

            CurrentLocation = new Location();


            CurrentLocation = CurrentWorld.locationAt(0, 0);
        }