示例#1
0
Actions::Actions(const Actions &actions)
{
    if(actions.getAttack() == nullptr)
    {
        attack = nullptr;
    }
    else
    {
        attack = actions.getAttack()->clone();
    }

    if(actions.getSkill() == nullptr)
    {
        skill = nullptr;
    }
    else
    {
        skill = actions.getSkill()->clone();
    }
}