Package model.zone

Class IndustrialZone

java.lang.Object
model.zone.Zone
model.zone.IndustrialZone
All Implemented Interfaces:
Serializable, Buildable, SideEffect

public class IndustrialZone extends Zone implements SideEffect
See Also:
  • Constructor Details

  • Method Details

    • getBuildableType

      public BuildableType getBuildableType()
      Description copied from interface: Buildable
      A type can be:
      Specified by:
      getBuildableType in interface Buildable
      Overrides:
      getBuildableType in class Zone
      Returns:
      the type of the buildable
    • effect

      public void effect(Zone zone, GameModel gm)
      Description copied from interface: SideEffect
      Applies special effect of the facility on a given zone. if condition is satisfied.
      Specified by:
      effect in interface SideEffect
      Parameters:
      zone - the zone to effect.
    • reverseEffect

      public void reverseEffect(Zone zone, GameModel gm)
      Description copied from interface: SideEffect
      Reverse special effect of the facility on a given zone. if condition is satisfied.
      Specified by:
      reverseEffect in interface SideEffect
      Parameters:
      zone - the zone to effect.
    • condition

      public boolean condition(Zone zone, GameModel gm)
      Description copied from interface: SideEffect
      Evaluates the condition for the facility to have effect on a given zone
      Specified by:
      condition in interface SideEffect
      Parameters:
      zone - the zone to check
      Returns:
      true if condition is satisfied, otherwise, false
    • getCapacity

      public int getCapacity()
      Overrides:
      getCapacity in class Zone
    • pollute

      public void pollute(Zone zone, GameModel gm)
      Pollution effects on the given zone
      Parameters:
      zone - zone to be polluted.
      gm - game model
    • reversePollute

      public void reversePollute(Zone zone, GameModel gm)
      Removes pollution effects on the given zone
      Parameters:
      zone - zone to be polluted.
      gm - game model