* Sets the object the bot is targeting * * @param targetObject The object to target */
| 89 | * @param targetObject The object to target |
| 90 | */ |
| 91 | void AIClient::setTargetObject( ShapeBase *targetObject ) { |
| 92 | if ( !targetObject || !bool( mTargetObject ) || targetObject->getId() != mTargetObject->getId() ) |
| 93 | mTargetInLOS = false; |
| 94 | |
| 95 | mTargetObject = targetObject; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Returns the target object |
no test coverage detected