Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class OverlordContain : public TransportContain
virtual UnsignedInt getContainCount() const override;
virtual Int getContainMax() const override;
virtual const ContainedItemsList* getContainedItemsList() const override;
virtual Bool isContained( const Object *obj ) const override;

// Friend for our Draw module only.
virtual const Object *friend_getRider() const override; ///< Damn. The draw order dependency bug for riders means that our draw module needs to cheat to get around it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,15 @@ const ContainedItemsList* OverlordContain::getContainedItemsList() const
return getRedirectedContain()->getContainedItemsList();
}

//-------------------------------------------------------------------------------------------------
Bool OverlordContain::isContained( const Object *obj ) const
{
if( getRedirectedContain() == nullptr )
return TransportContain::isContained( obj );

return getRedirectedContain()->isContained( obj );
}

//-------------------------------------------------------------------------------------------------
Bool OverlordContain::isEnclosingContainerFor( const Object *obj ) const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class OverlordContain : public TransportContain
virtual UnsignedInt getContainCount() const override;
virtual Int getContainMax() const override;
virtual const ContainedItemsList* getContainedItemsList() const override;
virtual Bool isContained( const Object *obj ) const override;

// Friend for our Draw module only.
virtual const Object *friend_getRider() const override; ///< Damn. The draw order dependency bug for riders means that our draw module needs to cheat to get around it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,15 @@ const ContainedItemsList* OverlordContain::getContainedItemsList() const
return getRedirectedContain()->getContainedItemsList();
}

//-------------------------------------------------------------------------------------------------
Bool OverlordContain::isContained( const Object *obj ) const
{
if( getRedirectedContain() == nullptr )
return TransportContain::isContained( obj );

return getRedirectedContain()->isContained( obj );
}

//-------------------------------------------------------------------------------------------------
Bool OverlordContain::isEnclosingContainerFor( const Object *obj ) const
{
Expand Down
Loading