Modifier and Type | Field and Description |
---|---|
java.lang.String |
busy
When empty string this Spiderling is not busy, and can act.
|
Web |
movingOnWeb
The Web this Spiderling is using to move.
|
Nest |
movingToNest
The Nest this Spiderling is moving to.
|
int |
numberOfCoworkers
The number of Spiderlings busy with the same work this Spiderling is doing, speeding up the task.
|
double |
workRemaining
How much work needs to be done for this Spiderling to finish being busy.
|
logs
Modifier and Type | Method and Description |
---|---|
boolean |
attack(Spiderling spiderling)
Attacks another Spiderling.
|
boolean |
move(Web web)
Starts moving the Spiderling across a Web to another Nest.
|
log
public java.lang.String busy
public Web movingOnWeb
public Nest movingToNest
public int numberOfCoworkers
public double workRemaining
public boolean attack(Spiderling spiderling)
spiderling
- The Spiderling to attack.public boolean move(Web web)
web
- The Web you want to move across to the other Nest.© 2020 MST ACM SIG-GAME