To return a pointer to the TaggedObject whose identifier is given by {tag}. If tag is not too large and all components have been added nicely, the contents of the array at location {tag} is returned. Otherwise if the tag is not too large, the contents at position {tag} is first checked to see if it is pointing to an object and if this object has the same tag as {tag}, the object returned. If the object is not at it's nice location, the array is searched from the start to the position holding the last entry to see if the array points to the object with the appropriate tag. If it does the object is returned. If the object has not been found after the last possible location has been checked,
is returned.
Reimplemented from TaggedObjectStorage.
Definition at line 296 of file ArrayOfTaggedObjects.cpp.
Referenced by addComponent().
|