54
60
Item::Item(std::string name, bool plantable, Player *plantable_owner)
59
65
d_plantable_owner_id = plantable_owner->getId();
61
67
d_id = fl_counter->getNextId();
64
71
Item::Item(const Item& orig)
72
:Renamable(orig), d_bonus(orig.d_bonus), d_plantable(orig.d_plantable),
67
73
d_plantable_owner_id(orig.d_plantable_owner_id), d_planted(orig.d_planted)
69
75
// Some things we don't copy from the template; we rather get an own ID
70
76
d_id = fl_counter->getNextId();