Class Hit

java.lang.Object
greenfoot.Actor
student.micro.Actor
student.micro.battleship.Hit

public class Hit extends student.micro.Actor
Represents a red "hit" peg in the game "Battleship", so it can be shown on the screen.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Hit()
    Create a new Hit peg.
  • Method Summary

    Methods inherited from class student.micro.Actor

    addToWorld, getIntersectingObjects, getNeighbors, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneNeighbor, getOneNeighbour, getOneObjectAtOffset, getOneObjectInRange, remove, turnTowards

    Methods inherited from class greenfoot.Actor

    act, getImage, getRotation, getWorld, getWorldOfType, getX, getY, isAtEdge, move, setImage, setImage, setLocation, setRotation, turn, turnTowards

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Hit

      public Hit()
      Create a new Hit peg.