예제 #1
0
        public ClientChute(GameBoard gameBoard, ChutesPlane chutesPlane, int chuteIndex, Point chuteLocation) : base(gameBoard, chutesPlane, chuteIndex, chuteLocation)
        {
            Blinking = false;
            Ticking  = 0;

            ChuteAssets    = new List <IImage>();
            ChuteAssetsLit = new List <IImage>();
        }
예제 #2
0
 public Chute(GameBoard gameBoard, ChutesPlane chutesPlane, int chuteIndex, Point chuteLocation)
 {
     GameBoard     = gameBoard;
     ChutesPlane   = chutesPlane;
     ChuteIndex    = chuteIndex;
     ChuteLocation = chuteLocation;
     Triggered     = false;
     ChuteNumber   = 20;//todo random
 }
예제 #3
0
 public void Render(TimeSpan elapsedGameTime)
 {
     PegPhysicsManager.Client().Render();
     BackgroundPlane.Render();
     CannonPlane.Client().Render();
     ChutesPlane.Client().Render();
     PegsPlane.Client().Render();
     OverlaysPlane.Render();
     CannonBallPlane.Client().Render();
 }
예제 #4
0
        public override void Init()
        {
            CreateObjects();
            base.Init();

            this.BackgroundPlane.Init();
            this.OverlaysPlane.Init();
            this.GameModel.Client().TouchManager.Init();

            Renderer.AddLayer(BackgroundPlane.Plane);
            Renderer.AddLayer(ChutesPlane.Client().BackPlane);
            Renderer.AddLayer(CannonBallPlane.Client().Plane);
            Renderer.AddLayer(CannonPlane.Client().Plane);
            Renderer.AddLayer(ChutesPlane.Client().FrontPlane);
            Renderer.AddLayer(PegsPlane.Client().Plane);
            Renderer.AddLayer(OverlaysPlane.Plane);

            if (PegPhysicsManager.Client().ShouldDraw)
            {
                //            Renderer.AddLayer(PegPhysicsManager.Plane);
            }
        }
 public override Chute CreateChute(ChutesPlane chutesPlane, int chuteNumber, Point chuteLocation)
 {
     return(new ClientChute(GameBoard, chutesPlane, chuteNumber, chuteLocation));
 }
예제 #6
0
 public static ClientChutesPlane Client(this ChutesPlane obj)
 {
     return((ClientChutesPlane)obj);
 }