public class Message
extends greenfoot.Actor
Actor
implementation that represents a message.
This class draws the message box, frame and text and holds a reference to it's dialog.Constructor and Description |
---|
Message(String message,
Dialog dialog)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
act()
This method checks if the spacebar is pressed and removes the message if that's the case.
|
Dialog |
getDialog()
Getter for the dialog this message belongs to.
|
addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getWorldOfType, getX, getY, intersects, isAtEdge, isTouching, move, removeTouching, setImage, setImage, setLocation, setRotation, turn, turnTowards
public void act()
act
in class greenfoot.Actor
public Dialog getDialog()
Copyright © 2019. All rights reserved.