Class cube

java.lang.Object
  extended by greenfoot.Actor
      extended by cube

public class cube
extends greenfoot.Actor

Write a description of class cube here.

Version:
(a version number or a date)
Author:
(your name)

Field Summary
 int groundLevel
           
 int ySpeed
           
 
Constructor Summary
cube()
           
 
Method Summary
 void act()
          Act - do whatever the cube wants to do.
 void die()
           
 void jump()
           
 
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, turn, turnTowards
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groundLevel

public int groundLevel

ySpeed

public int ySpeed
Constructor Detail

cube

public cube()
Method Detail

act

public void act()
Act - do whatever the cube wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.

Overrides:
act in class greenfoot.Actor

die

public void die()

jump

public void jump()