クラス Counter

java.lang.Object
  上位を拡張 greenfoot.Actor
      上位を拡張 Counter

public class Counter
extends greenfoot.Actor

Counter that displays a number.

バージョン:
1.0.1
作成者:
Michael Kolling

コンストラクタの概要
Counter()
           
Counter(java.lang.String prefix)
           
 
メソッドの概要
 void act()
           
 void add(int score)
           
 int getValue()
           
 void subtract(int score)
           
 
クラス 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
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Counter

public Counter()

Counter

public Counter(java.lang.String prefix)
メソッドの詳細

act

public void act()
オーバーライド:
クラス greenfoot.Actor 内の act

add

public void add(int score)

getValue

public int getValue()

subtract

public void subtract(int score)