OGS Java API Spec

Package ogs.magic

Defines the standard magic system.

See:
          Description

Interface Summary
Ability An ability with support for magic.
 

Class Summary
AbsoluteRange A spell range expressed in an absolute distance.
Component An element required for the preparation or casting of a spell.
Descriptors A descriptor indicates the nature of a spell.
Domain A domain represents an area of divine magic.
ExperienceCost A spell component that requires a loss of experience points.
LevelRange An absolute range that is based on caster level.
MetamagicFeat A feat used to improve or enhance a spell in some way at the cost of higher spell slots.
PhysicalComponent A spell component with physical attributes.
Range Maximum distance from caster that a spell affect can occur.
School A school of arcane magic.
Spell A magical effect produced by an entity.
SpellList A spell list associates spells with cclasses and domains.
Subschool A subschool of arcane magic.
 

Package ogs.magic Description

Defines the standard magic system. The ogs.magic package contains the classes and interfaces that represent the common properties and behavior of magic spells, magic items, and other magical effects. This package can be used in any campaign setting or game world where magic exists (which includes most but not all of them). In such open games, almost every rule can be broken. But even magic itself has rules.

The standard magic system concentrates on spells since magic usually manifests itself in the form of a spell. One important note about spells is the difference between a spell class and a spell object. A spell class defines the normal properties and behavior of a spell. A spell object is an instance of a spell class. It exists within a particular context (time and place) and may devicate slightly from the norm such as when modified by metamagic feats or stored in a magical item.

Specific (and common) spells that can be defined and implemented totally within the Open Gaming System framework (which is very few) can be found in the ogs.spells package.


OGS Java API Spec