Package com.starpoints.game.item
Class ItemPhantomPoints
- java.lang.Object
-
- com.starpoints.game.Thing
-
- com.starpoints.game.Item
-
- com.starpoints.game.item.ItemPhantomPoints
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ItemPhantomPoints extends Item
Point item that appears after a ItemWarpPoints has "warped" away. Won't add points to the collector.- See Also:
- Serialized Form
-
-
Field Summary
-
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 ItemPhantomPoints()Creates a new ItemPhantomPoints with 250000 energy per default.ItemPhantomPoints(int p)Creates a new ItemPhantomPoints with the given energy (and point display).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddStateProperties(ThingState state, AnimationInfo animation)Adds properties necessary for warp points painting.intgetCountDown()Gets the count down counter.intgetItemRating()Returns an item value for ComputerFigures rating in the items category.java.lang.StringgetPainterClassname()Gets the fully qualified classname of the Painter to use for this item (in 2D game).intgetPointBonus()Returns the point bonus.booleanisAvailableInEditor()Checks, if this item is available in level editor.booleanonBePickedUp(Figure picker, AnimationInfo animation)Displays "Hahaha...protected voidperformFieldEffect(AnimationInfo animation)Counts down the display counter.-
Methods inherited from class com.starpoints.game.Item
affectsBlue, bePickedUp, beUsed, bombPlaced, createState, die, doSpecialUpdate, entersColor, explodes, gainsEnergy, gainsPermanentItem, gainsSlots, getCategory, getDieReason, getDrawText, getItemRating, getMoveAnimationLength, getName, getPickUpClip, getPickupText, getRamPower, getUseClip, getUser, heatChanges, is3DItem, isAffectedByColor, isBomb, isRammed, isRocketTarget, isStunned, isWeapon, killedEnemy, losesEnergy, losesItem, losesPermanentItem, lostPermanentItem, onBeforeDie, onBeHitByItem, onBeUsed, onDrop, onEnemyKilled, onHitItem, onLevelFinished, 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, 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
-
-
-
-
Method Detail
-
getPainterClassname
public java.lang.String getPainterClassname()
Gets the fully qualified classname of the Painter to use for this item (in 2D game).- Overrides:
getPainterClassnamein classItem- Returns:
- "com.starpoints.painter.arena2D.PainterItemPhantomPoints"
-
getItemRating
public int getItemRating()
Returns an item value for ComputerFigures rating in the items category.- Overrides:
getItemRatingin classItem- Returns:
- 0.
-
isAvailableInEditor
public boolean isAvailableInEditor()
Checks, if this item is available in level editor.- Overrides:
isAvailableInEditorin classItem- Returns:
- false.
-
addStateProperties
protected void addStateProperties(ThingState state, AnimationInfo animation)
Adds properties necessary for warp points painting.- Overrides:
addStatePropertiesin classThing- Parameters:
state- The state to add properties to.animation- The current AnimationInfo.
-
onBePickedUp
public boolean onBePickedUp(Figure picker, AnimationInfo animation)
Displays "Hahaha... Too late" on the picker.- Overrides:
onBePickedUpin classItem- Parameters:
picker- the pickeranimation- The AnimationInfo.- Returns:
- false
-
performFieldEffect
protected void performFieldEffect(AnimationInfo animation)
Counts down the display counter. Disappears, if 0 is reached.- Overrides:
performFieldEffectin classItem- Parameters:
animation- The AnimationInfo.
-
getPointBonus
public int getPointBonus()
Returns the point bonus.- Overrides:
getPointBonusin classItem- Returns:
- 0.
-
getCountDown
public int getCountDown()
Gets the count down counter.- Returns:
- The count down counter.
-
-