source: 2012/23/RamiP/YAG2DSSBase/YAG2DSS/YAG2DSS/ALTKHandler.cs @ 2778

Revision 2778, 2.2 KB checked in by ramipasa, 9 years ago (diff)

korjauksia

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using Microsoft.Xna.Framework;
5using Microsoft.Xna.Framework.Audio;
6using Microsoft.Xna.Framework.Content;
7using Microsoft.Xna.Framework.GamerServices;
8using Microsoft.Xna.Framework.Graphics;
9using Microsoft.Xna.Framework.Input;
10using Microsoft.Xna.Framework.Media;
11using ALTK;
12
13namespace ALTK
14{
15    /// <summary>
16    /// This is a game component that implements IUpdateable.
17    /// </summary>
18    public class ALTKHandler : Microsoft.Xna.Framework.GameComponent
19    {
20        public ALTKHandler(Game game)
21            : base(game)
22        {
23            // TODO: Construct any child components here
24        }
25
26        public static Loader Loader;
27        public static Cursor Cursor;
28        public static StaticAnimHandler StaticAnimHandler;
29        public static GUI.Dialogs.ExitWindow ExitWindow;
30
31        /// <summary>
32        /// Allows the game component to perform any initialization it needs to before starting
33        /// to run.  This is where it can query for any required services and load content.
34        /// </summary>
35        public override void Initialize()
36        {
37            // TODO: Add your initialization code here
38
39            base.Initialize();
40
41            Loader = new Loader(Game);
42            Loader.Initialize();
43
44            StaticAnimHandler = new ALTK.StaticAnimHandler(Game);
45            StaticAnimHandler.Initialize();
46            Game.Components.Add(StaticAnimHandler);
47
48            Cursor = new Cursor(Game);
49            Cursor.Initialize();
50            Game.Components.Add(Cursor);
51
52            ExitWindow = new GUI.Dialogs.ExitWindow(Game);
53            ExitWindow.Initialize();
54            ExitWindow.Visible = false;
55            ExitWindow.Enabled = false;
56            Game.Components.Add(ExitWindow);
57        }
58
59        /// <summary>
60        /// Allows the game component to update itself.
61        /// </summary>
62        /// <param name="gameTime">Provides a snapshot of timing values.</param>
63        public override void Update(GameTime gameTime)
64        {
65            // TODO: Add your update code here
66
67            base.Update(gameTime);
68        }
69    }
70}
Note: See TracBrowser for help on using the repository browser.