Class armadilha

java.lang.Object
greenfoot.Actor
armadilha

public class armadilha extends greenfoot.Actor
Write a description of class armadilha here.
Version:
(a version number or a date)
Author:
(your name)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    act()
    Act - do whatever the armadilha wants to do.

    Methods inherited from class greenfoot.Actor

    addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getWorldOfType, getX, getY, intersects, isAtEdge, isTouching, move, removeTouching, setImage, setImage, setLocation, setRotation, sleepFor, turn, turnTowards

    Methods inherited from class java.lang.Object

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

    • armadilha

      public armadilha()
  • Method Details

    • act

      public void act()
      Act - do whatever the armadilha wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
      Overrides:
      act in class greenfoot.Actor