예제 #1
0
 private void DrawDebug()
 {
     if (DebugMode.IsDebugging(Debugging.Ship))
     {
         Debug();
     }
 }
예제 #2
0
파일: Ship.cs 프로젝트: elodea/Wormhole-2.0
 protected void DebugDraw()
 {
     if (DebugMode.IsDebugging(Debugging.Ship))
     {
         Debug();
     }
 }
예제 #3
0
 protected virtual void DebugDraw()
 {
     if (DebugMode.IsDebugging(Debugging.Component))
     {
         Debug();
     }
 }
예제 #4
0
 protected override void DebugDraw()
 {
     if (DebugMode.IsDebugging(Debugging.Particle))
     {
         Debug();
     }
 }
예제 #5
0
 protected override void DebugDraw()
 {
     if (DebugMode.IsDebugging(Debugging.Ammo))
     {
         Debug();
     }
 }
예제 #6
0
        public void Update()
        {
            if (DebugMode.IsDebugging(Debugging.Camera))
            {
                DebugArea(cornerAreas, SwinGame.RGBAColor(255, 0, 0, 80));
                DebugArea(sideAreas, SwinGame.RGBAColor(255, 0, 0, 50));
                DebugArea(chaseArea, SwinGame.RGBAColor(255, 0, 0, 20));
            }

            UpdateState();

            switch (state)
            {
            case State.CORNER:
                CornerCam();
                break;

            case State.SIDE:
                SideCam();
                break;

            case State.CHASE:
                ChaseCam();
                break;
            }
        }
예제 #7
0
파일: Node.cs 프로젝트: elodea/Wormhole-2.0
        public void DebugDraw()
        {
            if (DebugMode.IsDebugging(Debugging.Nodes))
            {
                if (childNodes != null)
                {
                    foreach (Node n in childNodes)
                    {
                        n.DebugDraw();
                    }
                }
                SwinGame.DrawRectangle(Color.Yellow, grid);

                foreach (ICollides c in ICollidesList)
                {
                    SwinGame.FillRectangle(Color.Aqua, c.RealPos.X, c.RealPos.Y, 10, 10);
                }

                if (ICollidesList.Count > 0)
                {
                    SwinGame.FillRectangle(SwinGame.RGBAColor(255, 255, 0, 100), grid);
                }
            }
        }