Package rekit.logic.gameelements.type
Class DynamicInanimate
java.lang.Object
rekit.logic.gameelements.GameElement
rekit.logic.gameelements.inanimate.Inanimate
rekit.logic.gameelements.type.DynamicInanimate
- All Implemented Interfaces:
Collidable
This class is the parent class of all dynamically loaded Inanimate.
-
Nested Class Summary
Nested classes/interfaces inherited from interface rekit.logic.Collidable
Collidable.Optional
-
Field Summary
Fields inherited from class rekit.logic.gameelements.GameElement
deleteMe, deltaTime, team, visible
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Prototype Constructor.protected
DynamicInanimate
(Vec pos, Vec size, RGBAColor color) Create an inanimate. -
Method Summary
Modifier and TypeMethodDescriptionabstract DynamicInanimate
Stub Factory method that everyGameElement
must implement in order to being able to be instantiated dynamically by the level creation.static Set<? extends GameElement>
Load all dynamic inanimate-prototypes.Methods inherited from class rekit.logic.gameelements.inanimate.Inanimate
collidedWithSolid, getLives, getPrototype, internalRender, reactToCollision
Methods inherited from class rekit.logic.gameelements.GameElement
checkCollision, destroy, getDeleteMe, getFrame, getPos, getScene, getSize, getTeam, getVel, getZ, getZHint, init, isAddableToGroup, isVisible, killBoost, logicLoop, render, setPos, setScene, setSize, setVel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface rekit.logic.Collidable
addDamage
-
Constructor Details
-
DynamicInanimate
protected DynamicInanimate()Prototype Constructor. -
DynamicInanimate
Create an inanimate.- Parameters:
pos
- the positionsize
- the sizecolor
- the color
-
-
Method Details
-
getPrototypes
Load all dynamic inanimate-prototypes.- Returns:
- a set of dynamic inanimate-prototypes
- See Also:
-
create
Description copied from class:GameElement
Stub Factory method that every
GameElement
must implement in order to being able to be instantiated dynamically by the level creation.A startPos must be supplied to position the new GameElement right.
Also, an array of modifiers that the extending
GameElement
can define and use is supplied. These are used make level creation able to determine theGameElements
behavior. Note: the modifiers are not checked in syntax, so it must be thoroughly checked.- Overrides:
create
in classInanimate
- Parameters:
startPos
- the initial position of the newGameElement
.options
- optional parameters that may determine additional behavior of theGameElement
.- Returns:
- the newly created
GameElement
.
-