#include <Game.h>

char* Game::classname() const
{
  return "Game";
}

IOstatus Game::readContents()
{
  if (deeds.read() != ok) expected("DeedIndex");
  if (cards.read() != ok) expected("CardIndex");
  if (dice.read()  != ok) expected("Dice");
  return ok;
}

IOstatus Game::writeContents() const
{
  if (deeds.write() != ok) die("Writing DeedIndex");
  if (cards.write() != ok) die("Writing CardIndex");
  if (dice.write()  != ok) die("Writing Dice");
  return ok;
}
