コード例 #1
0
        public AddTileScreen(ScreenManager manager, Resources resources)
            : base(manager)
        {
            OpeningTransition = new NoneTransition(Transition.Types.Opening);
            ClosingTransition = new NoneTransition(Transition.Types.Closing);

            IsSubmitted = false;
            Resources = resources;
        }
コード例 #2
0
ファイル: FormScreen.cs プロジェクト: BlaisePascalSi/PokeSi
        public FormScreen(ScreenManager manager, Form baseForm, World world)
            : base(manager)
        {
            OpeningTransition = new NoneTransition(Transition.Types.Opening);
            ClosingTransition = new NoneTransition(Transition.Types.Closing);

            World = world;
            Form = baseForm;
            IsSubmitted = false;
        }
コード例 #3
0
        public AddAnimationScreen(ScreenManager manager, Resources resources)
            : base(manager)
        {
            OpeningTransition = new NoneTransition(Transition.Types.Opening);
            ClosingTransition = new NoneTransition(Transition.Types.Closing);

            IsSubmitted = false;
            Resources = resources;
            animCurrentlyBuilding = new Animation(Resources, new string[] { }, 1, true);
            animPlayer = new AnimationPlayer();
        }
コード例 #4
0
ファイル: PokeSiGame.cs プロジェクト: BlaisePascalSi/PokeSi
        public PokeSiGame()
        {
            instance = this;

            graphics = new GraphicsDeviceManager(this);

            graphics.PreferredBackBufferWidth = PreferredWidth;
            graphics.PreferredBackBufferHeight = PreferredHeight;
            graphics.IsFullScreen = IsFullScreen;

            Keyboard = new KeyboardManager(this);
            Mouse = new MouseManager(this);
            Input.Initilize(this);

            this.IsMouseVisible = true;

            Content.RootDirectory = "Content";

            // Framerate differs between platforms.
            TargetElapsedTime = TimeSpan.FromTicks(TimeSpan.TicksPerSecond / TargetFrameRate);

            screenManager = new ScreenManager(this);
        }
コード例 #5
0
ファイル: WorldScreen.cs プロジェクト: BlaisePascalSi/PokeSi
 public WorldScreen(ScreenManager manager)
     : base(manager)
 {
     OpeningTransition = new NoneTransition(Transition.Types.Opening);
     ClosingTransition = new NoneTransition(Transition.Types.Closing);
 }
コード例 #6
0
ファイル: Screen.cs プロジェクト: BlaisePascalSi/PokeSi
 public Screen(ScreenManager manager)
 {
     Manager = manager;
     State = States.Sleeping;
 }
コード例 #7
0
ファイル: Screen.cs プロジェクト: BlaisePascalSi/PokeSi
 public Screen(ScreenManager manager)
 {
     Manager = manager;
     State   = States.Sleeping;
 }