Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.217.91
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
greenfoot /
greenfoot /
common /
[ HOME SHELL ]
Name
Size
Permission
Action
Animal.html
7.37
KB
-rw-r--r--
Animal.java
1.55
KB
-rw-r--r--
Counter.html
9.09
KB
-rw-r--r--
Counter.java
3.08
KB
-rw-r--r--
Counter.png
4.06
KB
-rw-r--r--
GifImage.html
7.37
KB
-rw-r--r--
GifImage.java
28.66
KB
-rw-r--r--
Label.html
8.75
KB
-rw-r--r--
Label.java
2.16
KB
-rw-r--r--
Map.html
9.93
KB
-rw-r--r--
Map.java
4.12
KB
-rw-r--r--
ScoreBoard.html
4.33
KB
-rw-r--r--
ScoreBoard.java
4.09
KB
-rw-r--r--
SimpleTimer.html
6.36
KB
-rw-r--r--
SimpleTimer.java
1.74
KB
-rw-r--r--
SmoothMover.html
8.87
KB
-rw-r--r--
SmoothMover.java
1.74
KB
-rw-r--r--
inherit.gif
57
B
-rw-r--r--
script.js
5.41
KB
-rw-r--r--
stylesheet.css
21.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Counter.java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A Counter class that allows you to display a numerical value on screen. * * The Counter is an actor, so you will need to create it, and then add it to * the world in Greenfoot. If you keep a reference to the Counter then you * can adjust its value. Here's an example of a world class that * displays a counter with the number of act cycles that have occurred: * * <pre> * class CountingWorld * { * private Counter actCounter; * * public CountingWorld() * { * super(600, 400, 1); * actCounter = new Counter("Act Cycles: "); * addObject(actCounter, 100, 100); * } * * public void act() * { * actCounter.setValue(actCounter.getValue() + 1); * } * } * </pre> * * @author Neil Brown and Michael Kölling * @version 1.0 */ public class Counter extends Actor { private static final Color transparent = new Color(0,0,0,0); private GreenfootImage background; private int value; private int target; private String prefix; public Counter() { this(new String()); } /** * Create a new counter, initialised to 0. */ public Counter(String prefix) { background = getImage(); // get image from class value = 0; target = 0; this.prefix = prefix; updateImage(); } /** * Animate the display to count up (or down) to the current target value. */ public void act() { if (value < target) { value++; updateImage(); } else if (value > target) { value--; updateImage(); } } /** * Add a new score to the current counter value. This will animate * the counter over consecutive frames until it reaches the new value. */ public void add(int score) { target += score; } /** * Return the current counter value. */ public int getValue() { return target; } /** * Set a new counter value. This will not animate the counter. */ public void setValue(int newValue) { target = newValue; value = newValue; updateImage(); } /** * Sets a text prefix that should be displayed before * the counter value (e.g. "Score: "). */ public void setPrefix(String prefix) { this.prefix = prefix; updateImage(); } /** * Update the image on screen to show the current value. */ private void updateImage() { GreenfootImage image = new GreenfootImage(background); GreenfootImage text = new GreenfootImage(prefix + value, 22, Color.BLACK, transparent); if (text.getWidth() > image.getWidth() - 20) { image.scale(text.getWidth() + 20, image.getHeight()); } image.drawImage(text, (image.getWidth()-text.getWidth())/2, (image.getHeight()-text.getHeight())/2); setImage(image); } }
Close