| 39 | } |
| 40 | |
| 41 | NodeStatus CrossDoor::pickLock() |
| 42 | { |
| 43 | SleepMS(500); |
| 44 | // succeed at 3rd attempt |
| 45 | if(_pick_attempts++ > 3) |
| 46 | { |
| 47 | _door_locked = false; |
| 48 | _door_open = true; |
| 49 | } |
| 50 | return _door_open ? NodeStatus::SUCCESS : NodeStatus::FAILURE; |
| 51 | } |
| 52 | |
| 53 | NodeStatus CrossDoor::smashDoor() |
| 54 | { |