| 725 | } |
| 726 | |
| 727 | void Tile::notifyVision(Seat* seat) |
| 728 | { |
| 729 | if(std::find(mSeatsWithVision.begin(), mSeatsWithVision.end(), seat) != mSeatsWithVision.end()) |
| 730 | return; |
| 731 | |
| 732 | seat->notifyVisionOnTile(this); |
| 733 | mSeatsWithVision.push_back(seat); |
| 734 | |
| 735 | // We also notify vision for allied seats |
| 736 | for(Seat* alliedSeat : seat->getAlliedSeats()) |
| 737 | notifyVision(alliedSeat); |
| 738 | } |
| 739 | |
| 740 | void Tile::setSeats(const std::vector<Seat*>& seats) |
| 741 | { |
no test coverage detected