Esempio n. 1
0
Item* Globals::createSpecialItemVertical(std::string name, unsigned int value)
{
  // 8 est la taille de "Vertical"
  std::string basic_name(name.substr(0, name.size() - 8));
  Item* item(new SpecialItemVertical(basic_name, value));
  item->setTexture(*globals.getTextureManager().getResource(name));
  return item;
}
Esempio n. 2
0
Item* Globals::createBasicItem(std::string name, unsigned int value)
{
  Item* item(new BasicItem(name, value));
  item->setTexture(*globals.getTextureManager().getResource(name));
  return item;
}