| 735 | } |
| 736 | |
| 737 | int VehiclesDistributed::Find(Entity* vehicle) const |
| 738 | { |
| 739 | int offset = 0; |
| 740 | int index = 0; |
| 741 | #define ONE_LIST(list) \ |
| 742 | index = list.Find(vehicle); \ |
| 743 | if (index >= 0) \ |
| 744 | return index + offset; \ |
| 745 | offset += list.Size(); |
| 746 | ONE_LIST(_visibleNear) |
| 747 | ONE_LIST(_visibleFar) |
| 748 | ONE_LIST(_invisibleNear) |
| 749 | ONE_LIST(_invisibleFar) |
| 750 | return -1; |
| 751 | } |
| 752 | |
| 753 | void VehiclesDistributed::Delete(Entity* vehicle) |
| 754 | { |
no outgoing calls
no test coverage detected