Package fr.formiko.kokcinelo.model
Class SpeedAphid
java.lang.Object
fr.formiko.kokcinelo.model.MapItem
fr.formiko.kokcinelo.model.Creature
fr.formiko.kokcinelo.model.Aphid
fr.formiko.kokcinelo.model.SpeedAphid
-
Field Summary
Fields inherited from class fr.formiko.kokcinelo.model.Creature
canFly, collectedFrequency, currentSpeed, defaultMoveFrontSpeed, fliing, hearRadius, hitFrequency, hitPoints, lastCollectedTime, lastHitTime, lastRunTime, lastShootTime, lifePoints, maxLifePoints, movingSpeed, ORDER, runFrequency, shootFrequency, shootPoints, shootRadius, visionRadius, wantedRotation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bonusWhenCollectHoneydew
(Creature collector) Give bonus to collector when honeydew is collected.void
bonusWhenEaten
(Creature eater) Give bonus to eater when aphid is eaten.Methods inherited from class fr.formiko.kokcinelo.model.Aphid
collectHoneydew, colorSkeleton, getAnimationSpeedMultiplier, getColor, getCreaturesFriendly, getCreaturesFriendlyWithVisibility, getCreaturesHuntedBy, getGivenPoints, getMaxRotationPerSecond, getSpaceActionName, isHoneydewReady, setHoneydewVisibility, updateHonewdewVisibility
Methods inherited from class fr.formiko.kokcinelo.model.Creature
addScore, addTime, boost, canBeCollected, canHit, canRun, canShoot, closestCreature, die, getAllFriendlyCreature, getAllFriendlyWithVisibilityCreature, getClosestVisibleCreatureToHunt, getCollectedFrequency, getCreaturesToHunt, getCurrentSpeed, getDefaultMoveFrontSpeed, getHearRadius, getHitPoints, getLastCollectedTime, getLifePoints, getMaxLifePoints, getMovingSpeed, getShootPoints, getShootRadius, getSpaceActionProgress, getVisibleCreatureHuntedBy, getVisionRadius, getWallsAngles, getWantedRotation, goTo, goTo, goTo, goTo, haveCreatureHuntedBy, haveCreatureToHunt, hit, isAI, isAlive, isFriendly, isFriendlyWithVisibility, isTooCloseForStart, minorRandomRotation, moveAI, moveFront, moveFront, run, runAwayFrom, see, seeableCreatures, setCollectedFrequency, setCurrentSpeed, setDefaultMoveFrontSpeed, setHearRadius, setHitPoints, setLastCollectedTime, setLifePoints, setMaxLifePoints, setMovingSpeed, setShootPoints, setShootRadius, setVisionRadius, setWantedRotation, shoot, stayInMap, toString
Methods inherited from class fr.formiko.kokcinelo.model.MapItem
distanceTo, distanceTo, equals, getActor, getCenter, getCenterX, getCenterY, getHitRadius, getId, getRotation, getZoom, hashCode, hitBoxConnected, isInRadius, moveIn, removeActor, setCenter, setCenterX, setCenterY, setRandomLoaction, setRotation, setZoom
-
Constructor Details
-
SpeedAphid
public SpeedAphid()
-
-
Method Details
-
bonusWhenEaten
Description copied from class:Aphid
Give bonus to eater when aphid is eaten.- Overrides:
bonusWhenEaten
in classAphid
- Parameters:
eater
- The creature that eat the aphid.
-
bonusWhenCollectHoneydew
Description copied from class:Aphid
Give bonus to collector when honeydew is collected.- Overrides:
bonusWhenCollectHoneydew
in classAphid
- Parameters:
collector
- The creature that collect the honeydew.
-