Uses of Class
rekit.logic.gameelements.GameElement
Packages that use GameElement
Package
Description
-
Uses of GameElement in rekit.logic
Methods in rekit.logic with parameters of type GameElementModifier and TypeMethodDescriptionvoidIScene.addGameElement(GameElement e) Adds a GameElement to the Model.voidIScene.markForRemove(GameElement e) Removes a GameElement from the Model The elements will not directly be removed from the internal data structure to prevent concurrency errors.default voidCollidable.reactToCollision(GameElement element, Direction dir) Notification that this GameElement has been collided with from another GameElement element from the given direction dir.Method parameters in rekit.logic with type arguments of type GameElementModifier and TypeMethodDescriptionvoidIScene.applyToGameElements(Consumer<GameElement> function) Apply function on all game elements.voidIScene.applyToNonNeutralGameElements(Consumer<GameElement> function) Apply function on game elements (non-neutral). -
Uses of GameElement in rekit.logic.gameelements
Methods in rekit.logic.gameelements that return GameElementModifier and TypeMethodDescriptionStub Factory method that everyGameElementmust implement in order to being able to be instantiated dynamically by the level creation.static GameElementGenerate a new GameElement at position.static GameElementGameElementFactory.generate(GameElement element) Generate a new GameElement.static GameElementGameElementFactory.generateDefaultCoin(int x, int y) Generate aDefaultCoinat position.static GameElementGameElementFactory.generateInanimate(int x, int y) GenerateInanimateat position.static GameElementGameElementFactory.getPrototype(String id) Get Prototype by identifier.Methods in rekit.logic.gameelements with parameters of type GameElementModifier and TypeMethodDescriptionfinal voidGameElement.checkCollision(GameElement e2) Check for collision with another element and invoke necessary methods.static GameElementGameElementFactory.generate(GameElement element) Generate a new GameElement.voidGameElement.reactToCollision(GameElement element, Direction dir) Method parameters in rekit.logic.gameelements with type arguments of type GameElementModifier and TypeMethodDescriptionstatic voidGameElementFactory.createGroup(Set<? extends GameElement> prototypes, String name) Create a new group of Elements. -
Uses of GameElement in rekit.logic.gameelements.entities
Subclasses of GameElement in rekit.logic.gameelements.entitiesModifier and TypeClassDescriptionclassThis class represents one of the most importantGameElement-Type:
These are the moving GameElements, which can interact between each other, so as thePlayer,Enemies,Pickups, etc.final classThe (maybe) most importantEntityof the Game:
The Player (most likely you).class -
Uses of GameElement in rekit.logic.gameelements.entities.pickups
Subclasses of GameElement in rekit.logic.gameelements.entities.pickupsModifier and TypeClassDescriptionclassThis class represents default coins.final classThis class defines a simplePickup; a Life which will give the player lives.Methods in rekit.logic.gameelements.entities.pickups with parameters of type GameElement -
Uses of GameElement in rekit.logic.gameelements.inanimate
Subclasses of GameElement in rekit.logic.gameelements.inanimateModifier and TypeClassDescriptionfinal classThis class represents an EndPortal.classThis is the default implementation of an inanimate in the game.classThis is the default implementation of an inanimate in the game (no ground).classThis is the default implementation of an inanimate door in the game.classThe standard Inanimate that will be used for the lowest height in the level.classThis is the default implementation of an inanimate trigger in the game.Methods in rekit.logic.gameelements.inanimate with parameters of type GameElementModifier and TypeMethodDescriptionvoidInanimate.reactToCollision(GameElement element, Direction dir) voidInanimateFloor.reactToCollision(GameElement element, Direction dir) final voidInanimateTrigger.reactToCollision(GameElement element, Direction dir) -
Uses of GameElement in rekit.logic.gameelements.particles
Subclasses of GameElement in rekit.logic.gameelements.particlesModifier and TypeClassDescriptionclassclassA simple GameElement with no collision and only with graphical effects.classParticlethat shows a text, that can be specified viaTextParticle.setText(String)Methods in rekit.logic.gameelements.particles with parameters of type GameElementModifier and TypeMethodDescriptionvoidDamageParticle.reactToCollision(GameElement element, Direction dir) -
Uses of GameElement in rekit.logic.gameelements.type
Subclasses of GameElement in rekit.logic.gameelements.typeModifier and TypeClassDescriptionclassThis class shall be extended in case of creating Bosses.classThis class defines a simplePickup; a Coin which will give the player points.classThis class is the parent class of all dynamically loaded Inanimate.classThis class is the parent class of all Enemies in the game.classThis class is the parent class of all Pickups in the game.Fields in rekit.logic.gameelements.type declared as GameElementMethods in rekit.logic.gameelements.type that return types with arguments of type GameElementModifier and TypeMethodDescriptionstatic final Set<? extends GameElement>Boss.getPrototypes()Get all instances of BossPrototypes.static final Set<? extends GameElement>Coin.getPrototypes()Get a set of coin prototypes.static Set<? extends GameElement>DynamicInanimate.getPrototypes()Load all dynamic inanimate-prototypes.static final Set<? extends GameElement>Enemy.getPrototypes()Load all Enemies.static Set<? extends GameElement>Pickup.getPrototypes()Load all Pickups.Methods in rekit.logic.gameelements.type with parameters of type GameElementModifier and TypeMethodDescriptionvoidCoin.perform(GameElement collector) abstract voidPickup.perform(GameElement collector) Template method that should be overwritten in concretePickupsto add the action that is performed upon being collected by the Player.final voidPickup.reactToCollision(GameElement element, Direction dir) final voidBoss.setTarget(GameElement target) Set the target of the boss. -
Uses of GameElement in rekit.logic.gui.parallax
Subclasses of GameElement in rekit.logic.gui.parallaxModifier and TypeClassDescriptionclassThis is the parent class which all background elements shall extend.classThis class shall be extended by each heap element.classclass