コード例 #1
0
 public CharacterActionInterface interrupt(CharacterActionInterface newAction)
 {
     if (newAction == this || (newAction.getPriority() <= priority_ && !newAction.isFinished()))
     {
         return this;
     }
     newAction.start();
     return newAction;
 }
コード例 #2
0
 public CharacterActionInterface interrupt(CharacterActionInterface newAction)
 {
     if (newAction == this || newAction.getPriority() <= priority_)
     {
         return this;
     }
     newAction.start();
     return newAction;
 }
コード例 #3
0
 public CharacterActionInterface interrupt(CharacterActionInterface newAction)
 {
     if (newAction == this)
     {
         finished_ = true;
         return this;
     }
     if (newAction.getPriority() <= priority_ && !finished_)
     {
         return this;
     }
     newAction.start();
     return newAction;
 }