123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- /*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- *
- * http://www.gnu.org/copyleft/gpl.html
- */
- package com.l2jserver.gameserver.model;
- import com.l2jserver.gameserver.templates.chars.L2NpcTemplate.AIType;
- /**
- * Author: ShanSoft
- * By L2JTW
- *
- *
- */
- // This Data is for NPC Attributes and AI relate stuffs...
- // Still need to finish...Update later...
- public class L2NpcAIData
- {
-
- //Basic AI
- private int _primary_attack;
- private int _skill_chance;
- private int _canMove;
- private int _soulshot;
- private int _spiritshot;
- private int _soulshotchance;
- private int _spiritshotchance;
- private int _ischaos;
- private String _clan = null;
- private int _clanRange;
- private String _enemyClan = null;
- private int _enemyRange;
- //private int _baseShldRate;
- //private int _baseShldDef;
- private int _dodge;
- private int _longrangeskill;
- private int _shortrangeskill;
- private int _longrangechance;
- private int _shortrangechance;
- private int _switchrangechance;
- private AIType _aiType = AIType.FIGHTER;
-
- //--------------------------------------------------------------------------------------------------------------
- //Setting....
- //--------------------------------------------------------------------------------------------------------------
- public void setPrimaryAttack(int primaryattack)
- {
-
- _primary_attack = primaryattack;
-
- }
-
- public void setSkillChance(int skill_chance)
- {
-
- _skill_chance = skill_chance;
-
- }
-
- public void setCanMove(int canMove)
- {
-
- _canMove = canMove;
-
- }
-
- public void setSoulShot(int soulshot)
- {
-
- _soulshot = soulshot;
-
- }
-
- public void setSpiritShot(int spiritshot)
- {
-
- _spiritshot = spiritshot;
-
- }
-
- public void setSoulShotChance(int soulshotchance)
- {
-
- _soulshotchance = soulshotchance;
-
- }
-
- public void setSpiritShotChance(int spiritshotchance)
- {
-
- _spiritshotchance = spiritshotchance;
-
- }
-
- public void setShortRangeSkill(int shortrangeskill)
- {
-
- _shortrangeskill = shortrangeskill;
-
- }
-
- public void setShortRangeChance(int shortrangechance)
- {
-
- _shortrangechance = shortrangechance;
-
- }
-
- public void setLongRangeSkill(int longrangeskill)
- {
-
- _longrangeskill = longrangeskill;
-
- }
-
- public void setLongRangeChance(int longrangechance)
- {
-
- _shortrangechance = longrangechance;
-
- }
-
- public void setSwitchRangeChance(int switchrangechance)
- {
-
- _switchrangechance = switchrangechance;
-
- }
-
- public void setIsChaos(int ischaos)
- {
- _ischaos = ischaos;
-
- }
-
- public void setClan(String clan)
- {
- if (clan != null && !clan.equals("") && !clan.equalsIgnoreCase("null"))
- _clan = clan.intern();
- }
-
- public void setClanRange(int clanRange)
- {
- _clanRange = clanRange;
- }
-
- public void setEnemyClan(String enemyClan)
- {
- if (enemyClan != null && !enemyClan.equals("") && !enemyClan.equalsIgnoreCase("null"))
- _enemyClan = enemyClan.intern();
- }
-
- public void setEnemyRange(int enemyRange)
- {
-
- _enemyRange = enemyRange;
-
- }
-
- public void setDodge(int dodge)
- {
- _dodge = dodge;
- }
-
- public void setAi(String ai)
- {
- if (ai.equalsIgnoreCase("archer"))
- _aiType = AIType.ARCHER;
- else if (ai.equalsIgnoreCase("balanced"))
- _aiType = AIType.BALANCED;
- else if (ai.equalsIgnoreCase("mage"))
- _aiType = AIType.MAGE;
- else if (ai.equalsIgnoreCase("healer"))
- _aiType = AIType.HEALER;
- else if (ai.equalsIgnoreCase("corpse"))
- _aiType = AIType.CORPSE;
- else
- _aiType = AIType.FIGHTER;
- }
-
- /*
-
- public void setBaseShldRate (int baseShldRate)
- {
-
- _baseShldRate = baseShldRate;
-
- }
-
- public void setBaseShldDef (int baseShldDef)
- {
-
- _baseShldDef = baseShldDef;
-
- }
- */
- //--------------------------------------------------------------------------------------------------------------
- //Data Recall....
- //--------------------------------------------------------------------------------------------------------------
- public int getPrimaryAttack()
- {
-
- return _primary_attack;
-
- }
-
- public int getSkillChance()
- {
-
- return _skill_chance;
-
- }
-
- public int getCanMove()
- {
-
- return _canMove;
-
- }
-
- public int getSoulShot()
- {
-
- return _soulshot;
-
- }
-
- public int getSpiritShot()
- {
-
- return _spiritshot;
-
- }
-
- public int getSoulShotChance()
- {
-
- return _soulshotchance;
-
- }
-
- public int getSpiritShotChance()
- {
-
- return _spiritshotchance;
-
- }
-
- public int getShortRangeSkill()
- {
-
- return _shortrangeskill;
-
- }
-
- public int getShortRangeChance()
- {
-
- return _shortrangechance;
-
- }
-
- public int getLongRangeSkill()
- {
-
- return _longrangeskill;
-
- }
-
- public int getLongRangeChance()
- {
-
- return _longrangechance;
-
- }
-
- public int getSwitchRangeChance()
- {
-
- return _switchrangechance;
-
- }
-
- public int getIsChaos()
- {
-
- return _ischaos;
-
- }
-
- public String getClan()
- {
-
- return _clan;
-
- }
-
- public int getClanRange()
- {
- return _clanRange;
- }
-
- public String getEnemyClan()
- {
-
- return _enemyClan;
-
- }
-
- public int getEnemyRange()
- {
-
- return _enemyRange;
-
- }
-
- public int getDodge()
- {
-
- return _dodge;
-
- }
-
- public AIType getAiType()
- {
- return _aiType;
- }
-
- /*
-
- public int getBaseShldRate ()
- {
-
- return _baseShldRate;
-
- }
-
- public int getBaseShldDef ()
- {
-
- return _baseShldDef;
-
- }
- */
- }
|