Esempio n. 1
0
 public GameState(SokobanGame game, GraphicsDevice graphicsDevice, ContentManager content) : base(game, graphicsDevice, content)
 {
     new OptionsState(game, graphicsDevice, content).GetSettingsFromFile("Settings.ini");
     currentLevel = 0;
     levels       = new List <char[, ]>();
     LoadContent();
 }
Esempio n. 2
0
        public State(SokobanGame game, GraphicsDevice graphicsDevice, ContentManager content)
        {
            this.game = game;

            this.graphicsDevice = graphicsDevice;

            this.content = content;
        }
 public LevelEditorState(SokobanGame game, GraphicsDevice graphicsDevice, ContentManager content) : base(game, graphicsDevice, content)
 {
 }
Esempio n. 4
0
 public VictoryState(SokobanGame game, GraphicsDevice graphicsDevice, ContentManager content) : base(game, graphicsDevice, content)
 {
     victoryFont = content.Load <SpriteFont>("MainFont");
 }
Esempio n. 5
0
 ///<summary>Check new solution against records of this level</summary>
 public SolutionFlags EstimateNewSolution(SokobanGame uSolution)
 {
     SolutionFlags uRv = SolutionFlags.Nothing;//Initially no achivments
     if (!bSolved)
         uRv |= SolutionFlags.FirstSolution;//Level was not solved? So this is first solution
     {
         if (uSolution.uStats.iMoves < uBestMovesSolution.iMoves)
             uRv |= SolutionFlags.BestMoves;//New best moves record
         if (uSolution.uStats.iPushes < uBestPushesSolution.iPushes)
             uRv |= SolutionFlags.BestPushes;//New best pushes record
     }
     return uRv;//Return flags
 }