Package model.common

Interface SideEffect

All Known Implementing Classes:
CommercialZone, EffectualFacility, Forest, IndustrialZone, Police, Stadium

public interface SideEffect
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Evaluates the condition for the facility to have effect on a given zone
    void
    effect(Zone zone, GameModel gm)
    Applies special effect of the facility on a given zone.
    void
    Reverse special effect of the facility on a given zone.
  • Method Details

    • effect

      void effect(Zone zone, GameModel gm)
      Applies special effect of the facility on a given zone. if condition is satisfied.
      Parameters:
      zone - the zone to effect.
    • reverseEffect

      void reverseEffect(Zone zone, GameModel gm)
      Reverse special effect of the facility on a given zone. if condition is satisfied.
      Parameters:
      zone - the zone to effect.
    • condition

      boolean condition(Zone zone, GameModel gm)
      Evaluates the condition for the facility to have effect on a given zone
      Parameters:
      zone - the zone to check
      Returns:
      true if condition is satisfied, otherwise, false