| 12345678910111213141516171819202122232425262728293031323334 |
-
- namespace MultiAgentSystemPCL
- {
- public class BadZone : ObjectInWorld
- {
- protected double radius;
- public double Radius
- {
- get
- {
- return radius;
- }
- }
- protected int timeToLive = 100;
- public BadZone(double _posX, double _posY, double _radius)
- {
- PosX = _posX;
- PosY = _posY;
- radius = _radius;
- }
- public void Update()
- {
- timeToLive--;
- }
- public bool Dead()
- {
- return timeToLive <= 0;
- }
- }
- }
|