Class LegacyDesignSupport
- java.lang.Object
-
- ca.cgjennings.apps.arkham.component.design.AbstractVerbalDesignSupport<LegacyDesignSupport.Provider>
-
- ca.cgjennings.apps.arkham.component.design.LegacyDesignSupport
-
- All Implemented Interfaces:
DesignSupport<LegacyDesignSupport.Provider>
public class LegacyDesignSupport extends AbstractVerbalDesignSupport<LegacyDesignSupport.Provider>
Adapts components with legacy design support implementations to use the new API.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLegacyDesignSupport.ProviderImplemented by game components that provide design support the pre-SE3.0 way.
-
Constructor Summary
Constructors Constructor Description LegacyDesignSupport(LegacyDesignSupport.Provider gc)Creates a new legacy design support adapter for a game component with legacy design support methods.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleananalyze(LegacyDesignSupport.Provider gc, java.lang.StringBuilder b)Updates the design support analysis by invoking the legacy design support methods on the adapted component.-
Methods inherited from class ca.cgjennings.apps.arkham.component.design.AbstractVerbalDesignSupport
createSupportView, getGameComponent, getReport, isDesignValid, markChanged, updateSupportView
-
-
-
-
Constructor Detail
-
LegacyDesignSupport
public LegacyDesignSupport(LegacyDesignSupport.Provider gc)
Creates a new legacy design support adapter for a game component with legacy design support methods.- Parameters:
gc- the legacy game component to adapt
-
-
Method Detail
-
analyze
protected boolean analyze(LegacyDesignSupport.Provider gc, java.lang.StringBuilder b)
Updates the design support analysis by invoking the legacy design support methods on the adapted component.- Specified by:
analyzein classAbstractVerbalDesignSupport<LegacyDesignSupport.Provider>- Parameters:
gc- the legacy game componentb- a buffer for the analysis content- Returns:
trueif the component is valid
-
-