public override bool Activate(WorldThing worldThing) { if (CanActivateWith(worldThing)) { switch (worldThing.type) { case WorldThing.Type.Field: if (full) { full = false; worldThing.Absorb(WorldThing.Resource.Water); } break; case WorldThing.Type.Fire: if (full) { full = false; worldThing.Absorb(WorldThing.Resource.Water); } break; case WorldThing.Type.River: full = true; break; default: break; } } return(false); // not exhausted }
public override bool Activate(WorldThing worldThing) { if (CanActivateWith(worldThing)) { switch (worldThing.type) { case WorldThing.Type.Buyer: worldThing.Absorb(WorldThing.Resource.Plant); return(true); default: break; } } return(false); }
public override bool Activate(WorldThing worldThing) { if (CanActivateWith(worldThing)) { switch (worldThing.type) { case WorldThing.Type.Field: worldThing.Absorb(WorldThing.Resource.ClassicalMusic); return(false); default: break; } } return(false); }
public override bool Activate(WorldThing worldThing) { if (CanActivateWith(worldThing)) { switch (worldThing.type) { case WorldThing.Type.Field: worldThing.Absorb(WorldThing.Resource.Seeds); return(true); case WorldThing.Type.Fire: return(true); // destroyed you idiot default: break; } } return(false); // not exhausted }