public void DestroyResourceBall(RBall ball) { resBalls.Remove(ball); if (ResourceBallChanged != null) { ResourceBallChanged(this, new ResourceBallEventArg(false, ball)); } }
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)); } }
public ResourceBallEventArg(bool bornOrDie, RBall ball) { BornOrDie = bornOrDie; ResourceBall = ball; }