/*!
* @file ItemBase.cpp
* @brief ゲーム中のアイテムベースを定義する
* @date 2014/02/01
* @author Deskull
* 2014 Sikabane Works.
*/

#include "stdafx.h"
#include "ItemBase.h"

namespace Deeangband
{

	ItemBase::ItemBase(void) : ItemTemplate()
	{
		this->WipeData();
	}

	ItemBase::~ItemBase(void)
	{
	}

	void ItemBase::WipeData(void)
	{
		this->name = "何か訳の分からないもの";
		this->weight = 0;
	}

	WEIGHT ItemBase::GetWeight(void)
	{
		return this->weight;
	}

	Dice ItemBase::GetDamageDice(void)
	{
		return this->baseDamage;
	}


	void ItemBase::XMLSave(std::string filename)
	{
		ItemBase itemBase = *this;
		std::ofstream ofs(filename);
		assert(ofs);
		boost::archive::xml_oarchive oa(ofs);
		oa << BOOST_SERIALIZATION_NVP(itemBase);
	}

}