Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function execute(Board $board, string $alias, array $operation) |
||
11 | { |
||
12 | list($newX, $newY) = $board->getActorNextMove($alias); |
||
13 | if('door' === $board->getField($newX, $newY)) { |
||
14 | $board->setField($newX, $newY, 'ground'); |
||
15 | $board->debug('Door Open[%s:%s]', $newY, $newX); |
||
16 | return; |
||
17 | } |
||
18 | $board->debug('Door Open[%s:%s] Failed', $newY, $newX); |
||
19 | } |
||
20 | |||
31 |