Package fr.formiko.kokcinelo.model
Class Ladybug
java.lang.Object
fr.formiko.kokcinelo.model.MapItem
fr.formiko.kokcinelo.model.Creature
fr.formiko.kokcinelo.model.Ladybug
- Direct Known Subclasses:
LadybugSideView
Ladybugs are Creature that eat aphids.
Usually ladybugs run away from ants.
- Since:
- 0.1
- Version:
- 1.0
-
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 TypeMethodDescriptionintfloatMethods inherited from class fr.formiko.kokcinelo.model.Creature
addScore, addTime, boost, canBeCollected, canHit, canRun, canShoot, closestCreature, die, getAllFriendlyCreature, getAllFriendlyWithVisibilityCreature, getAnimationSpeedMultiplier, getClosestVisibleCreatureToHunt, getCollectedFrequency, 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, toStringMethods 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
-
Ladybug
Main constructor with default texture, high radius, low hit point & high heal point. -
Ladybug
public Ladybug()
-
-
Method Details
-
getGivenPoints
public int getGivenPoints()- Overrides:
getGivenPointsin classCreature
-
getMaxRotationPerSecond
public float getMaxRotationPerSecond()- Overrides:
getMaxRotationPerSecondin classCreature
-
getCreaturesToHunt
- Overrides:
getCreaturesToHuntin classCreature
-
getCreaturesHuntedBy
- Overrides:
getCreaturesHuntedByin classCreature
-
getCreaturesFriendly
- Overrides:
getCreaturesFriendlyin classCreature
-
getCreaturesFriendlyWithVisibility
- Overrides:
getCreaturesFriendlyWithVisibilityin classCreature
-
getSpaceActionName
- Overrides:
getSpaceActionNamein classCreature
-