morey.spore
Class Exist
java.lang.Object
|
+--morey.spore.SporeAction
|
+--morey.spore.Exist
- public class Exist
- extends SporeAction
- implements java.lang.Cloneable
Exist is SporeAction that indicates a new spore has arrived. It makes the
every spore (even with an empty life-cycle/program) have at least on
SporeAction. The spore with no life-cycle might be considered a blocker...
For instance, "blocker 4 | plodder 4 4{spawn blocker flip}" has the plodder
spawn a block before it takes a step. This makes the blocker a kamikazi that
collides and eliminates with anything in front of the plodder.
Here
is a link to the source code
- See Also:
Sequence,
Left,
Type,
Claim,
Flip,
Spawn
|
Constructor Summary |
Exist(int sides,
java.lang.String name)
construct a simple command. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
COMPLEXITY
protected static final int COMPLEXITY
sides
public final int sides
name
public final java.lang.String name
Exist
public Exist(int sides,
java.lang.String name)
- construct a simple command.
getExecutionTime
public double getExecutionTime(Spore s,
Processor cpu)
- gets up the time of execution for the next action
- Overrides:
- getExecutionTime in class SporeAction
- Parameters:
s - the spore wanting to execute the actioncpu - that executes this action (and required info...)- Returns:
- the time of execution
toString
public java.lang.String toString()
- Gives a String representation of this
- Overrides:
- toString in class java.lang.Object