#include <GLInterfaceSwapTails.h>
Public Member Functions | |
virtual void | swapTails (GLBaseOrganism *anotherOrganism, int pos)=0 |
Definition at line 9 of file GLInterfaceSwapTails.h.
virtual void GLInterfaceSwapTails::swapTails | ( | GLBaseOrganism * | anotherOrganism, | |
int | pos | |||
) | [pure virtual] |
Swaps tails with another organism. After this method is called the current organism should have tail of the anotherOrganism, while the latter will have the tail of the caller.
anotherOrganism | organism with which the swap will be done. | |
pos | the place where the tails are swapped (element [i] will be swapped too). |
Implemented in GLOrganismVector< T >.