Package com.starpoints.game.item
Class ItemRedChrystal
- java.lang.Object
-
- com.starpoints.game.Thing
-
- com.starpoints.game.Item
-
- com.starpoints.game.ItemPermanent
-
- com.starpoints.game.item.ItemAbstractChrystal
-
- com.starpoints.game.item.ItemRedChrystal
-
- All Implemented Interfaces:
FigureItemListener
,FigureRamListener
,java.io.Serializable
,java.lang.Cloneable
public class ItemRedChrystal extends ItemAbstractChrystal implements FigureRamListener
Red chrystal item. Increases ram power by 100 and adds heat to rammer.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.starpoints.game.item.ItemAbstractChrystal
exitX, exitY
-
Fields inherited from class com.starpoints.game.ItemPermanent
displayInSlot, drawDuration, duration, energyFactor, isPermanentlyActive, unique, usesUp, useText
-
Fields inherited from class com.starpoints.game.Item
affectsBlue, category, DEBUG, DEFAULT_ITEM_PAINTERCLASS, dieReason, isBomb, isWeapon, pickupClip, pickupText, pointBonus, useClip, user
-
Fields inherited from class com.starpoints.game.Thing
energy, energyFx, energyMaxSoundPlayed, energyModifications, explosionCounter, game, imageName, innerColor, invulnCount, isAffectedByBlack, isAffectedByGray, level, MAX_TEXTPAINT, maxEnergy, nextID, outerColor, p, shieldCount, status, text
-
-
Constructor Summary
Constructors Constructor Description ItemRedChrystal()
Creates a new ItemEnergyPlus.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRamPower(Figure f, Figure rammer, int initialRamPower)
Returns the initial ram power increased by the 100.int
isRammed(Figure f, Figure rammer, int ramPower, AnimationInfo animation)
Ram.-
Methods inherited from class com.starpoints.game.item.ItemAbstractChrystal
beforePickup, calculateDuration, checkPickup, createExit, freeSlot, getItemRating, isAvailableInEditor, lostPermanentItem
-
Methods inherited from class com.starpoints.game.ItemPermanent
createState, die, displayInSlot, doSpecialUpdate, getDuration, getFigureOverlayImageName, getSlotImageName, getUseText, isAddingEnergy, isDrawingDuration, isPermanentlyActive, isUnique, isUsingUp, onAddedAsPermanentItem, onBeLost, onBePickedUp, onBeUsed, onDropPermanent, onReinitForNewLevel, performPermanentEffect, setDrawDuration, setDuration, setIsUsingUp, useUp
-
Methods inherited from class com.starpoints.game.Item
affectsBlue, bePickedUp, beUsed, bombPlaced, entersColor, explodes, gainsEnergy, gainsPermanentItem, gainsSlots, getCategory, getDieReason, getDrawText, getItemRating, getMoveAnimationLength, getName, getPainterClassname, getPickUpClip, getPickupText, getPointBonus, getUseClip, getUser, heatChanges, is3DItem, isAffectedByColor, isBomb, isRocketTarget, isStunned, isWeapon, killedEnemy, losesEnergy, losesItem, losesPermanentItem, onBeforeDie, onBeHitByItem, onDrop, onEnemyKilled, onHitItem, onLevelFinished, performFieldEffect, pickesUpBomb, pickesUpExplosive, pickesUpItem, pointsChange, pointSumChanges, removeAfterLevel, retrieveState, rocketStarted, setUser, startsHovering, staysOnColor, toString, updateExplodingStatus, updateThing, usesItem, visibilityChanges
-
Methods inherited from class com.starpoints.game.Thing
addEnergy, addShielding, addStateProperties, clearTexts, displayText, displayText, entersColor, equals, getColor, getEnergy, getEnergyMaxCount, getExplosionCounter, getField, getGame, getID, getImageName, getInnerColor, getInvulnerableRounds, getLevel, getMaxEnergy, getNextID, getOuterColor, getPoint, getShadowColor, getShield, getStateObject, getStatus, getText, getTextColor, getTextPaintCount, getX, getY, hashCode, invulnerable, isAffectedByBlack, isAffectedByGray, isDestroyed, isExploding, isInvulnerable, isOK, isShowingEnergyFx, onExplode, removeEnergy, retrieveState, setEnergy, setEnergyMaxCount, setGame, setMaxEnergy, setPoint, setStatus, staysOnColor, stepText, updateEnergy
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.starpoints.game.listener.FigureItemListener
gainsPermanentItem, gainsSlots, losesItem, losesPermanentItem, pickesUpBomb, pickesUpExplosive, pickesUpItem, usesItem
-
-
-
-
Method Detail
-
isRammed
public int isRammed(Figure f, Figure rammer, int ramPower, AnimationInfo animation)
Ram. Adds heat to the rammed figure.- Specified by:
isRammed
in interfaceFigureRamListener
- Overrides:
isRammed
in classItem
- Parameters:
f
- The figure.rammer
- The rammer.ramPower
- Ram power.animation
- AnimationInfo- Returns:
- The original ram power.
-
getRamPower
public int getRamPower(Figure f, Figure rammer, int initialRamPower)
Returns the initial ram power increased by the 100.- Specified by:
getRamPower
in interfaceFigureRamListener
- Overrides:
getRamPower
in classItemAbstractChrystal
- Parameters:
f
- The figure.rammer
- The rammer.initialRamPower
- The original ram power.- Returns:
- The initial ram power increased by the gain.
-
-