src/systems/CollisionDetectionSystem.cpp
void CollisionDetectionSystem::removeItemAtInArray(uint array[], uint8 index, uint8& arraySize) const {
    assert(index < arraySize);
    assert(arraySize > 0);
    array[index] = array[arraySize - 1];
    arraySize--;
}
// Remove an element in an array (and replace it by the last one in the array)
Remove an element in an array (and replace it by the last one in the array)
Remove an element in an array ( and replace it by the last one in the array )
void CollisionDetectionSystem::removeItemAtInArray(uint array[], uint8 index, uint8& arraySize) const {
    assert(index < arraySize);
    assert(arraySize > 0);
    array[index] = array[arraySize - 1];
    arraySize--;
}
void CollisionDetectionSystem :: removeItemAtInArray ( uint array [ ] , uint8 index , uint8 & arraySize ) const { assert ( index < arraySize ) ; assert ( arraySize > 0 ) ; array [ index ] = array [ arraySize - 1 ] ; arraySize -- ; }
Remove an element in an array (and replace it by the last one in the array)
Remove an element in an array ( and replace it by the last one in the array )