OGS Java API Spec

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.


Field Summary
 
Fields inherited from class ogs.magic.Component
DIVINE_FOCUS, EXPERIENCE_COST, FOCUS, MATERIAL, SOMANTIC, VERBAL
 
Constructor Summary
protected PhysicalComponent(int type, String details)
          Create a physical component.
 
Method Summary
 PhysicalComponent Focus(String details)
          Create a new Focus component.
 String getDetails()
          Determine the details of this spell component.
 PhysicalComponent Material(String details)
          Create a new Material component.
 
Methods inherited from class ogs.magic.Component
DivineFocus, getAbbreviation, getType, Somantic, Verbal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.

OGS Java API Spec