예제 #1
0
 public void DestroyResourceBall(RBall ball)
 {
     resBalls.Remove(ball);
     if (ResourceBallChanged != null)
     {
         ResourceBallChanged(this, new ResourceBallEventArg(false, ball));
     }
 }
예제 #2
0
        public void CreateResourceBall(Player owner, City city, RBallType type)
        {
            RBall ball = new RBall(owner, city, type);

            resBalls.Add(ball);

            if (ResourceBallChanged != null)
            {
                ResourceBallChanged(this, new ResourceBallEventArg(true, ball));
            }
        }
예제 #3
0
 public ResourceBallEventArg(bool bornOrDie, RBall ball)
 {
     BornOrDie    = bornOrDie;
     ResourceBall = ball;
 }