package com.torah.game.myrpggame.bean.skills;

import com.torah.game.myrpggame.bean.BaseBean;
import com.torah.game.myrpggame.bean.actor.BaseActor;

/**
 * Created by torahli on 2015/9/15.
 */
public abstract class BaseSkills extends BaseBean {
    public static final int BASEID = 10000;
    protected final BaseActor actor;//使用者
    protected boolean isWeaponAttack = true;//是否是武器攻击挂钩。false表示固定伤害，只跟力量挂钩

    public BaseSkills(int id,String name,BaseActor actor) {
        this.id = id;
        this.name = name;
        this.actor = actor;
    }

    /**
     * 设置人物，装备等，对技能的增幅
     * @param coefficient 放大100倍的系数
     */
    public abstract void setEnforceCoefficient(int coefficient);

    /**
     * 技能生效
     *
     */
    public abstract void takeEffect();
}
