Example #1
0
        public void SetMap(IMapExtender map)
        {
            gameState.MapExtender = map;
            gameState.MapExtender.OnLoad();

            SetTilesAndCommands();

            screen.FontColor = gameState.Map.ColorScheme.TextColor;
        }
Example #2
0
 private void TransferAngryStateIfNeeded(IMapExtender saveMap)
 {
     // Preserve guard anger state for castle
     // when changing levels
     if (gameState.Map.GetType() == saveMap.GetType() &&
         gameState.Map.Guards != null)
     {
         gameState.Map.Guards.IsAngry = saveMap.TheMap.Guards.IsAngry;
     }
 }