Package net.sf.gridarta.model.gameobject
GameObjects are the objects based on Archetypes found on maps. Everything
related to both of them is handled by this package or one of its
sub-packages.
Small GameObject Glossary
- GameObjectType
- The GameObjectType represents the numerical type of objects along with the associated information read from the types description. Archetypes and GameObjects with the same GameObjectType will display the same variant of the attribute editor dialog.
- Archetype
- An Archetype is a prototype for the creation of GameObjects. An Archetype is based on a GameObjectType. The information of an Archetype is read from the single archetypes file or collected from the .arc files. Different Archetypes of the same GameObjectType will differ in attributes, e.g. face, weight and value.
- GameObject
- A GameObject is an instance of an Archetype as found in game data on a map. A GameObject is thus based on this Archetype. A GameObject can override attributes it inherits from an Archetype by re-declaring them. The editor and the server work slightly different regarding GameObjects. The server uses the same structure for Archetypes and GameObjects, and a GameObject is created by copying an Archetype. The editor creates a GameObject by just linking it to its Archetype and only stores the differences.
-
Interface Summary Interface Description GameObject<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> Reflects a game object (object on a map).GameObjectFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> Abstract factory for creatingGameObjectinstances. -
Class Summary Class Description AbstractGameObject<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> Abstract base class ofGameObjectimplementations.AbstractGameObjectFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> Abstract base class forGameObjectFactoryimplementations.AbstractIsoGameObjectFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> Abstract base class for aGameObjectFactorythat createsGameObjects.DefaultIsoGameObject<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> Default implementation forGameObjectimplementing classes.GameObjectUtils Utility class forGameObjectrelated functions.IsoMapSquareInfo Provides information about isometric map squares.MultiArchData<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,T extends BaseObject<G,A,R,T>> Class related toGameObjectto store multi-part information.MultiPositionData The MultiPositionData class stores an array of numbers which is required in order to calculate display positions of ISO multi-part objects.MultiPositionEntry Encapsulated information about a multi-square image. -
Enum Summary Enum Description FaceSource Enumeration describing the state of the face. -
Exception Summary Exception Description NotInsideContainerException This exception is thrown in case a method of aGameObjectwithout a container or the wrong container was invoked when a GameObject requires a container.