| 43 | } |
| 44 | |
| 45 | bool SimObjectList::pushBackForce(SimObject* obj) |
| 46 | { |
| 47 | iterator itr = T3D::find(begin(),end(),obj); |
| 48 | if (itr == end()) |
| 49 | { |
| 50 | push_back(obj); |
| 51 | return true; |
| 52 | } |
| 53 | else |
| 54 | { |
| 55 | // Move to the back... |
| 56 | // |
| 57 | SimObject* pBack = *itr; |
| 58 | removeStable(pBack); |
| 59 | push_back(pBack); |
| 60 | } |
| 61 | |
| 62 | return false; |
| 63 | } |
| 64 | |
| 65 | bool SimObjectList::pushFront(SimObject* obj) |
| 66 | { |
no test coverage detected