Definition at line 11 of file OnStack.h.
Public Member Functions | |
virtual bool | isSatisfy (Cube *model) const |
virtual bool | isWrong (Cube *model) const |
|
Implements OnCondition. Definition at line 13 of file OnStack.h. 00014 { 00015 bool result = false; 00016 if (!model->isAlive()) { 00017 if (model->rules()->getDir() == Dir::DIR_NO 00018 && model->rules()->isOnStrongPad(Cube::LIGHT)) 00019 { 00020 result = true; 00021 } 00022 } 00023 return result; 00024 }
|
|
Implements OnCondition. Definition at line 26 of file OnStack.h. 00027 { 00028 return model->isAlive(); 00029 }
|