Esempio n. 1
0
 public PolygonObstacleBaseEventArgs(BCBlockGameState pgstate, cBall pBall, PolygonObstacle pObstacle)
 {
     _gameState = pgstate;
     _Ball = pBall;
     _Obstacle = pObstacle;
 }
Esempio n. 2
0
 public PolygonObstacleHitEventArgs(BCBlockGameState pgstate, cBall pBall, PolygonObstacle pObstacle)
     : base(pgstate, pBall, pObstacle)
 {
 }
Esempio 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;
        }