2016-02-11 22:54:43 +01:00
|
|
|
/** @file
|
|
|
|
|
*
|
|
|
|
|
* @par History
|
|
|
|
|
* - 2009/09/03 MuadDib: Changes for account related source file relocation
|
|
|
|
|
* Changes for multi related source file relocation
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "boatcomp.h"
|
|
|
|
|
|
2018-01-29 21:55:48 +01:00
|
|
|
#include "../baseobject.h"
|
|
|
|
|
#include "../lockable.h"
|
|
|
|
|
|
2016-02-19 19:26:35 +01:00
|
|
|
namespace Pol
|
|
|
|
|
{
|
|
|
|
|
namespace Multi
|
|
|
|
|
{
|
2018-01-29 21:55:48 +01:00
|
|
|
UPlank::UPlank( const Items::ItemDesc& descriptor )
|
|
|
|
|
: Core::ULockable( descriptor, Core::UOBJ_CLASS::CLASS_ITEM )
|
2016-02-19 19:26:35 +01:00
|
|
|
{
|
|
|
|
|
}
|
2016-02-11 22:54:43 +01:00
|
|
|
|
2016-02-19 19:26:35 +01:00
|
|
|
void UPlank::setboat( UBoat* boat )
|
|
|
|
|
{
|
|
|
|
|
boat_.set( boat );
|
|
|
|
|
}
|
2016-02-11 22:54:43 +01:00
|
|
|
|
2016-02-19 19:26:35 +01:00
|
|
|
void UPlank::destroy()
|
|
|
|
|
{
|
|
|
|
|
boat_.clear();
|
|
|
|
|
base::destroy();
|
|
|
|
|
}
|
2016-02-11 22:54:43 +01:00
|
|
|
|
2016-02-19 19:26:35 +01:00
|
|
|
size_t UPlank::estimatedSize() const
|
|
|
|
|
{
|
|
|
|
|
return base::estimatedSize() + sizeof( ref_ptr<UBoat> );
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-12 22:21:59 +01:00
|
|
|
}
|