Ejemplo n.º 1
0
 /**
  * Checks if the behavior is blocked.
  *
  * @see org.arl.fjage.Behavior#isBlocked()
  */
 protected boolean isBlocked() {
   if (fsm == null) return false;
   return fsm.isBlocked();
 }
Ejemplo n.º 2
0
 /**
  * Restarts the behavior.
  *
  * @see org.arl.fjage.Behavior#restart()
  */
 protected void restart() {
   if (fsm != null) fsm.restart();
 }
Ejemplo n.º 3
0
 /**
  * Blocks the behavior.
  *
  * @see org.arl.fjage.Behavior#block(long)
  */
 protected void block(long millis) {
   if (fsm != null) fsm.block(millis);
 }
Ejemplo n.º 4
0
 /**
  * Blocks the behavior.
  *
  * @see org.arl.fjage.Behavior#block()
  */
 protected void block() {
   if (fsm != null) fsm.block();
 }
Ejemplo n.º 5
0
 /** Terminates the FSM. */
 protected void terminate() {
   if (fsm != null) fsm.terminate();
 }
Ejemplo n.º 6
0
 /**
  * Changes the FSM state to the specified state.
  *
  * @param name name of the state to change to.
  */
 protected void setNextState(Object name) {
   if (fsm != null) fsm.setNextState(name);
 }