Ejemplo n.º 1
0
 public PolygonObstacleBaseEventArgs(BCBlockGameState pgstate, cBall pBall, PolygonObstacle pObstacle)
 {
     _gameState = pgstate;
     _Ball = pBall;
     _Obstacle = pObstacle;
 }
Ejemplo n.º 2
0
 public PolygonObstacleHitEventArgs(BCBlockGameState pgstate, cBall pBall, PolygonObstacle pObstacle)
     : base(pgstate, pBall, pObstacle)
 {
 }
Ejemplo n.º 3
0
        protected bool InvokeObstacleHit(BCBlockGameState gstate,cBall Source,PolygonObstacle obstacle)
        {
            var copied = ObstacleHit;
            if (copied != null)
            {
                var created = new PolygonObstacleHitEventArgs(gstate, Source, obstacle);
                copied(this, created);
                return created.Cancel;
            }

            return false;
        }