コード例 #1
0
ファイル: Console.cs プロジェクト: ARLM-Attic/neat
 public Console(NeatGame _game) : base(_game)
 {
     game = _game;
     Ram  = game.Ram;
     Consoles.Add(this);
     //Initialize();
 }
コード例 #2
0
ファイル: Kintouch.cs プロジェクト: ARLM-Attic/neat
        public float JumpRange      = 10; //Pixels

        public Kintouch(NeatGame game, KinectEngine kinect = null) : base(game)
        {
            Debug.WriteLine("Kintouch object created.", "Kintouch");
            Debug.WriteLineIf(kinect == null, "Kinect is null.", "Kintouch");

            this.Game   = game;
            this.Kinect = kinect;

            TrackPoints = new List <TrackPointData>()
            {
                new TrackPointData(),
                new TrackPointData()
                {
                    TrackJoint        = JointType.HandRight,
                    BackupJoint       = JointType.WristRight,
                    TextureName       = "handright",
                    PushedTextureName = "handright_pushed"
                },
                new TrackPointData()
                {
                    SkeletonId = 1, Tint = Color.Pink
                },
                new TrackPointData()
                {
                    TrackJoint        = JointType.HandRight,
                    BackupJoint       = JointType.WristRight,
                    TextureName       = "handright",
                    PushedTextureName = "handright_pushed",
                    SkeletonId        = 1, Tint = Color.Pink
                }
            };
        }
コード例 #3
0
 public Form(NeatGame g)
 {
     Controls     = new Dictionary <string, Control>();
     controlChain = new LinkedList <Control>();
     game         = g;
     HasMouse     = game.ShowMouse;
 }
コード例 #4
0
ファイル: MenuSystem.cs プロジェクト: ARLM-Attic/neat
            public MenuSystem(NeatGame g, Vector2 b, SpriteFont f)
            {
                font = f;
                game = g;

                Position = b;
                Initialize();
            }
コード例 #5
0
ファイル: Console.cs プロジェクト: ARLM-Attic/neat
 public Console(Game _game)
     : base(_game)
 {
     game       = new NeatGame(game);
     Ram        = new RAM();
     standAlone = true;
     Consoles.Add(this);
 }
コード例 #6
0
ファイル: Object2D.cs プロジェクト: ARLM-Attic/neat
 /// <summary>
 /// Initializes a new instance of the Object2D class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 public Object2D(NeatGame game)
     : base(game)
 {
 }
コード例 #7
0
ファイル: TextEffects.cs プロジェクト: ARLM-Attic/neat
 public TextEffects(NeatGame game)
     : base(game)
 {
     this.Game = game;
 }
コード例 #8
0
ファイル: TextEffects.cs プロジェクト: ARLM-Attic/neat
 public ElegantTextEngine(NeatGame game)
     : base(game)
 {
     this.Game = game;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the ColorStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 public ColorStreamRenderer(NeatGame game)
     : base(game)
 {
     this.skeletonStream = new SkeletonStreamRenderer(game, this.SkeletonToColorMap);
 }
コード例 #10
0
 public TextEffects(NeatGame game)
 {
     this.game = game;
 }
コード例 #11
0
ファイル: MainMenu.cs プロジェクト: ARLM-Attic/neat
 public MainMenu(NeatGame G)
     : base(G)
 {
 }
コード例 #12
0
ファイル: InGameMenu.cs プロジェクト: ARLM-Attic/neat
 public InGameMenu(NeatGame G)
     : base(G)
 {
 }
コード例 #13
0
ファイル: CropEffect.cs プロジェクト: ARLM-Attic/neat
 public override void Initialize(NeatGame game)
 {
     base.Initialize(game);
     Effect = game.GetEffect("crop");
 }
コード例 #14
0
ファイル: SpeechEngine.cs プロジェクト: ARLM-Attic/neat
 public SpeechEngine(NeatGame game)
     : base(game)
 {
     this.Console = game.Console;
 }
コード例 #15
0
 public QuitConfirmationMenu(NeatGame G)
     : base(G)
 {
 }
コード例 #16
0
 public TrackHUD(NeatGame _game)
     : base(_game)
 {
     game = _game;
 }
コード例 #17
0
ファイル: StartScreen.cs プロジェクト: ARLM-Attic/neat
 public StartScreen(NeatGame Game)
     : base(Game)
 {
 }
コード例 #18
0
 /// <summary>
 /// Initializes a new instance of the SkeletonStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public SkeletonStreamRenderer(NeatGame game, SkeletonPointMap map)
     : base(game)
 {
     this.mapMethod = map;
 }
コード例 #19
0
ファイル: RippleEffect.cs プロジェクト: ARLM-Attic/neat
 public override void Initialize(NeatGame game)
 {
     base.Initialize(game);
     Effect = game.GetEffect("ripple");
     Tint   = Color.White;
 }
コード例 #20
0
 /// <summary>
 /// Initializes a new instance of the DepthStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 public DepthStreamRenderer(NeatGame game)
     : base(game)
 {
     this.skeletonStream = new SkeletonStreamRenderer(game, this.SkeletonToDepthMap);
     this.Size           = new Vector2(160, 120);
 }
コード例 #21
0
ファイル: OptionsMenu.cs プロジェクト: ARLM-Attic/neat
 public OptionsMenu(NeatGame G)
     : base(G)
 {
 }