コード例 #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;
 }