Exemplo n.º 1
0
        public bool useTargetSkill(Int32 skillID, Int32 targetID)
        {
            Skill skill = SkillBox.inst.get(skillID);
            if(skill == null)
                return false;

            SCEntityObject scobject = new SCEntityObject(targetID);
            if(skill.validCast(this, scobject))
            {
                skill.use(this, scobject);
            }

            return true;
        }
Exemplo n.º 2
0
		public bool useTargetSkill(Int32 skillID, Int32 targetID)
		{
			Skill skill = SkillBox.inst.get(skillID);
			if(skill == null)
				return false;

			SCEntityObject scobject = new SCEntityObject(targetID);
			if(skill.validCast(this, scobject))
			{
				skill.use(this, scobject);
				return true;
			}

			Dbg.DEBUG_MSG(className + "::useTargetSkill: skillID=" + skillID + ", targetID=" + targetID + ". is failed!");
			return false;
		}
Exemplo n.º 3
0
        public bool useTargetSkill(Int32 skillID, Int32 targetID)
        {
            Skill skill = SkillBox.inst.get(skillID);

            if (skill == null)
            {
                return(false);
            }

            SCEntityObject scobject = new SCEntityObject(targetID);

            if (skill.validCast(this, scobject))
            {
                skill.use(this, scobject);
            }

            return(true);
        }
Exemplo n.º 4
0
        public bool useTargetSkill(Int32 skillID, Int32 targetID)
        {
            Skill skill = SkillBox.inst.get(skillID);

            if (skill == null)
            {
                return(false);
            }

            SCEntityObject scobject = new SCEntityObject(targetID);

            if (skill.validCast(this, scobject))
            {
                skill.use(this, scobject);
                return(true);
            }

            Dbg.DEBUG_MSG(className + "::useTargetSkill: skillID=" + skillID + ", targetID=" + targetID + ". is failed!");
            return(false);
        }
Exemplo n.º 5
0
        //技能
        public int useTargetSkill(Int32 skillID, Int32 targetID)
        {
            Skill skill = SkillBox.inst.get(skillID);

            if (skill == null)
            {
                return(4);
            }

            SCEntityObject scobject  = new SCEntityObject(targetID);
            int            errorCode = skill.validCast(this, scobject);

            if (errorCode == 0)
            {
                skill.use(this, scobject);
                return(errorCode);
            }

            //Dbg.DEBUG_MSG(className + "::useTargetSkill: skillID=" + skillID + ", targetID=" + targetID + ". is failed!");
            return(errorCode);
        }
Exemplo n.º 6
0
        //技能
        public int useTargetSkill(Int32 skillID, Int32 targetID)
        {
            Skill skill = SkillBox.inst.get(skillID);
            if (skill == null)
                return 4;

            SCEntityObject scobject = new SCEntityObject(targetID);
            int errorCode = skill.validCast(this, scobject);
            if (errorCode == 0)
            {
                skill.use(this, scobject);
                return errorCode;
            }

            //Dbg.DEBUG_MSG(className + "::useTargetSkill: skillID=" + skillID + ", targetID=" + targetID + ". is failed!");
            return errorCode;
        }