ogs.magic
Class PhysicalComponent
java.lang.Object
|
+--ogs.magic.Component
|
+--ogs.magic.PhysicalComponent
- public class PhysicalComponent
- extends Component
A spell component with physical attributes. These attributes
further describe the physical nature of the component. Some
components have significant costs and others use a divine focus
when casting divine magic.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhysicalComponent
protected PhysicalComponent(int type,
String details)
- Create a physical component. The physical component has no
significant cost and does not require a divine focus to be used
for divine versions of the spell.
- Parameters:
type
- Type of component (MATERIAL or FOCUS).details
- Details of physical component.
Material
public PhysicalComponent Material(String details)
- Create a new Material component.
- Parameters:
details
- Details of physical component.
- Returns:
- A material component.
Focus
public PhysicalComponent Focus(String details)
- Create a new Focus component.
- Parameters:
details
- Details of physical component.
- Returns:
- A focus component.
getDetails
public String getDetails()
- Determine the details of this spell component.
- Returns:
- Details of physical component.