void Weapon1::pop_actions(unsigned int /*id*/, float time, std::list< std::pair<Action *, float> >& actions) { std::stringstream params; if (this->_owner < 5) params << "R "; else params << "L "; params << this->getId(); insert_action(new Action(MOVE, TYPEWEAPON, WEAPON1, params.str(), this->_owner), time, actions); }
void toolbar::add_action(i_action& aAction) { insert_action(button_count(), aAction); }