well.c 582 B

1234567891011121314151617181920212223242526272829303132333435
  1. class Well extends BuildingSuper
  2. {
  3. override bool IsBuilding()
  4. {
  5. return false;
  6. }
  7. override bool IsWell()
  8. {
  9. return GetWaterSourceObjectType() == EWaterSourceObjectType.WELL;
  10. }
  11. override EWaterSourceObjectType GetWaterSourceObjectType()
  12. {
  13. return EWaterSourceObjectType.WELL;
  14. }
  15. override float GetLiquidThroughputCoef()
  16. {
  17. return LIQUID_THROUGHPUT_WELL;
  18. }
  19. override int GetLiquidSourceType()
  20. {
  21. return LIQUID_CLEANWATER;
  22. }
  23. override void SetActions()
  24. {
  25. super.SetActions();
  26. AddAction(ActionWashHandsWell);
  27. AddAction(ActionDrinkWellContinuous);
  28. }
  29. }