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

Field Summary
protected static int COMPLEXITY
           
 java.lang.String name
           
 int sides
           
 
Fields inherited from class morey.spore.SporeAction
NO_COMPLEXITY
 
Constructor Summary
Exist(int sides, java.lang.String name)
          construct a simple command.
 
Method Summary
 double getExecutionTime(Spore s, Processor cpu)
          gets up the time of execution for the next action
 java.lang.String toString()
          Gives a String representation of this
 
Methods inherited from class morey.spore.SporeAction
addSpore, addSporeCommands, executeAction, parseCommand, parseSpore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPLEXITY

protected static final int COMPLEXITY

sides

public final int sides

name

public final java.lang.String name
Constructor Detail

Exist

public Exist(int sides,
             java.lang.String name)
construct a simple command.
Method Detail

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 action
cpu - 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