Package model.common
Interface SideEffect
- All Known Implementing Classes:
CommercialZone
,EffectualFacility
,Forest
,IndustrialZone
,Police
,Stadium
public interface SideEffect
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluates the condition for the facility to have effect on a given zonevoid
Applies special effect of the facility on a given zone.void
reverseEffect
(Zone zone, GameModel gm) Reverse special effect of the facility on a given zone.
-
Method Details
-
effect
Applies special effect of the facility on a given zone. if condition is satisfied.- Parameters:
zone
- the zone to effect.
-
reverseEffect
Reverse special effect of the facility on a given zone. if condition is satisfied.- Parameters:
zone
- the zone to effect.
-
condition
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
-