├── .classpath
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
├── org.eclipse.core.runtime.prefs
├── org.eclipse.jdt.core.prefs
├── org.eclipse.jdt.ui.prefs
├── org.eclipse.ltk.core.refactoring.prefs
├── org.eclipse.wst.sse.core.prefs
└── org.eclipse.wst.validation.prefs
├── build.xml
├── dist
├── GameServer_loop.sh
├── SQL
│ ├── account_bank.sql
│ ├── accounts.sql
│ ├── boss_spawn.sql
│ ├── character_appearances.sql
│ ├── character_faces.sql
│ ├── character_friends.sql
│ ├── character_hotkey.sql
│ ├── character_inventors.sql
│ ├── character_quest_vars.sql
│ ├── character_quests.sql
│ ├── character_save_effects.sql
│ ├── character_settings.sql
│ ├── character_skill_reuses.sql
│ ├── character_skills.sql
│ ├── character_territories.sql
│ ├── character_variables.sql
│ ├── characters.sql
│ ├── guild_ranks.sql
│ ├── guilds.sql
│ ├── items.sql
│ ├── region_status.sql
│ ├── region_war_register.sql
│ ├── server_variables.sql
│ ├── skill_learns.sql
│ ├── wait_items.sql
│ └── wait_skills.sql
├── StartGameServer.sh
├── config
│ ├── AI.xml
│ ├── Accounts.xml
│ ├── DataBase.xml
│ ├── Developer.xml
│ ├── DistanceControl.xml
│ ├── Event.xml
│ ├── GeoEngine.xml
│ ├── Network.xml
│ ├── Opcode.xml
│ ├── Selector.xml
│ ├── Server.xml
│ ├── Thread.xml
│ └── World.xml
├── data
│ ├── announces.xml
│ ├── base_stats.xml
│ ├── config_ai
│ │ ├── bandit_npc.xml
│ │ ├── catacombs.xml
│ │ ├── default.xml
│ │ ├── playable_npc.xml
│ │ ├── raid_boss.xml
│ │ ├── region_war_npcs.xml
│ │ └── summons.xml
│ ├── dialogs
│ │ ├── alemantheia.xml
│ │ ├── banks.xml
│ │ ├── cleric_stamina.xml
│ │ ├── dialogs.txt
│ │ ├── event.xml
│ │ ├── guilds.xml
│ │ ├── local.xml
│ │ ├── pegases.xml
│ │ ├── shops.xml
│ │ ├── skill_teachers.xml
│ │ ├── specialty_store.xml
│ │ └── velika.xml
│ ├── drops
│ │ ├── aurum_road.xml
│ │ ├── celestial_hills.xml
│ │ ├── cliffs_of_insanity.xml
│ │ ├── colossal_ruins.xml
│ │ ├── crag_basilisk.xml
│ │ ├── dark_cathedral.xml
│ │ ├── eldritch_academy_grounds.xml
│ │ ├── fey_forest.xml
│ │ ├── freeholds.xml
│ │ ├── furmount.xml
│ │ ├── island_of_dawn.xml
│ │ ├── lake_of_tears.xml
│ │ ├── oblivion_woods.xml
│ │ ├── paraanon_ravine.xml
│ │ ├── quarantine_zone.xml
│ │ ├── raid_boss.xml
│ │ ├── resourses.xml
│ │ ├── tenebrous_mines.xml
│ │ ├── vale_of_the_fang.xml
│ │ ├── valley_of_titans.xml
│ │ └── veritas_district.xml
│ ├── events
│ │ └── region_wars
│ │ │ ├── bastion_barriers_spawn.xml
│ │ │ ├── bastion_control_spawn.xml
│ │ │ ├── bastion_defense_spawn.xml
│ │ │ ├── bastion_manager_spawn.xml
│ │ │ ├── bastion_shops_spawn.xml
│ │ │ ├── ostgarath_barriers_spawn.xml
│ │ │ ├── ostgarath_control_spawn.xml
│ │ │ ├── ostgarath_defense_spawn.xml
│ │ │ ├── ostgarath_manager_spawn.xml
│ │ │ ├── ostgarath_shops_spawn.xml
│ │ │ ├── region_wars.xml
│ │ │ ├── val_aureum_barriers_spawn.xml
│ │ │ ├── val_aureum_control_spawn.xml
│ │ │ ├── val_aureum_defense_spawn.xml
│ │ │ ├── val_aureum_manager_spawn.xml
│ │ │ ├── val_aureum_shops_spawn.xml
│ │ │ ├── val_palrada_barriers_spawn.xml
│ │ │ ├── val_palrada_control_spawn.xml
│ │ │ ├── val_palrada_defense_spawn.xml
│ │ │ ├── val_palrada_manager_spawn.xml
│ │ │ └── val_palrada_shops_spawn.xml
│ ├── geodata_1.dat
│ ├── geodata_2.dat
│ ├── geodata_3.dat
│ ├── gmshop.xml
│ ├── help.txt
│ ├── items
│ │ ├── armors
│ │ │ ├── accessory.xml
│ │ │ ├── boots.xml
│ │ │ ├── cuirass.xml
│ │ │ ├── earring.xml
│ │ │ ├── gauntlets.xml
│ │ │ ├── gloves.xml
│ │ │ ├── greaves.xml
│ │ │ ├── hauberk.xml
│ │ │ ├── necklace.xml
│ │ │ ├── ring.xml
│ │ │ ├── robes.xml
│ │ │ ├── shoes.xml
│ │ │ └── sleeves.xml
│ │ ├── commons
│ │ │ ├── dye.xml
│ │ │ ├── event.xml
│ │ │ ├── glyphs.xml
│ │ │ ├── herb.xml
│ │ │ ├── manuals.xml
│ │ │ ├── material.xml
│ │ │ ├── money.xml
│ │ │ ├── other.xml
│ │ │ ├── other2.xml
│ │ │ ├── potion.xml
│ │ │ ├── quests.xml
│ │ │ └── scroll.xml
│ │ ├── crystals
│ │ │ ├── armor_crystals.xml
│ │ │ └── weapon_crystals.xml
│ │ └── weapons
│ │ │ ├── axe.xml
│ │ │ ├── bow.xml
│ │ │ ├── disc.xml
│ │ │ ├── greatsword.xml
│ │ │ ├── lance.xml
│ │ │ ├── scepter.xml
│ │ │ ├── staff.xml
│ │ │ └── twinSword.xml
│ ├── messages_ai
│ │ ├── message_ai.xml
│ │ └── playable_summon.xml
│ ├── minions
│ │ └── minions.xml
│ ├── npc_appearance
│ │ ├── playable_npc.xml
│ │ ├── player_summon_appearance.xml
│ │ └── top_playable_npcs.xml
│ ├── npcs
│ │ ├── event.xml
│ │ ├── island_of_dawn
│ │ │ ├── friendly.xml
│ │ │ └── monsters.xml
│ │ ├── north_shara
│ │ │ ├── Amena Quatla 2.xml
│ │ │ ├── Amena Quatla.xml
│ │ │ ├── Darkquaver Woods 2.xml
│ │ │ ├── Darkquaver Woods.xml
│ │ │ ├── Labyrinth of Terror 2.xml
│ │ │ ├── Plain of the Damned 2.xml
│ │ │ ├── Seeliewood 2.xml
│ │ │ ├── Seeliewood.xml
│ │ │ ├── Susurrus Woods 2.xml
│ │ │ ├── Susurrus Woods.xml
│ │ │ ├── Thrallhold 2.xml
│ │ │ ├── Thrallhold.xml
│ │ │ ├── Tirkai Forest 2.xml
│ │ │ ├── Tirkai Forest.xml
│ │ │ ├── Vale of Spires 2.xml
│ │ │ ├── Vale of Spires .xml
│ │ │ ├── dragonfall.xml
│ │ │ ├── habere.xml
│ │ │ ├── kaiator.xml
│ │ │ ├── pathfinder.xml
│ │ │ └── scythera.xml
│ │ ├── playable
│ │ │ ├── bandits.xml
│ │ │ ├── epic_battle_npc.xml
│ │ │ ├── region_war_npcs.xml
│ │ │ └── top_playable_npcs.xml
│ │ ├── raid_boss.xml
│ │ ├── south_arun
│ │ │ ├── arkadia.xml
│ │ │ ├── ostograf.xml
│ │ │ ├── poporia.xml
│ │ │ ├── val_aureum.xml
│ │ │ └── velika.xml
│ │ ├── south_shara
│ │ │ ├── alemanthia.xml
│ │ │ ├── val_palrada.xml
│ │ │ └── veritas_district.xml
│ │ └── summons
│ │ │ ├── smoke_aggresion.xml
│ │ │ ├── thrall_of_life.xml
│ │ │ ├── thrall_of_protection.xml
│ │ │ ├── thrall_of_vengeance.xml
│ │ │ └── thrall_of_wrath.xml
│ ├── packets
│ │ └── packet.txt
│ ├── player_race_appearance.xml
│ ├── player_race_stats.xml
│ ├── player_templates.xml
│ ├── quests
│ │ ├── aurum_road.xml
│ │ ├── azarels_labyrinth.xml
│ │ ├── balders_refuge.xml
│ │ ├── basilisk_crag.xml
│ │ ├── celestial_hills.xml
│ │ ├── cliffs_of_insanity.xml
│ │ ├── colossal_ruins.xml
│ │ ├── dark_cathedral.xml
│ │ ├── fey_forest.xml
│ │ ├── freeholds.xml
│ │ ├── fyrmount.xml
│ │ ├── island_of_dawn
│ │ │ ├── story_quests.xml
│ │ │ └── zone_quests.xml
│ │ ├── lake_of_tears.xml
│ │ ├── oblivion_woods.xml
│ │ ├── paraanon_ravine.xml
│ │ ├── quarantine_zone.xml
│ │ ├── tenebrous_mines.xml
│ │ ├── vale_of_the_fang.xml
│ │ ├── valley_of_titans.xml
│ │ └── velika.xml
│ ├── resourses
│ │ ├── energy.xml
│ │ ├── minings.xml
│ │ ├── plants.xml
│ │ └── quests.xml
│ ├── skill_learns.xml
│ ├── skills
│ │ ├── crystal_skills
│ │ │ ├── armor_crystals.xml
│ │ │ └── weapon_crystals.xml
│ │ ├── guard_skills
│ │ │ └── start_loc_guard_skills.xml
│ │ ├── item_skills
│ │ │ ├── charm_skills.xml
│ │ │ ├── itemskill.xml
│ │ │ ├── otherskill.xml
│ │ │ ├── potion_skills.xml
│ │ │ └── transforms.xml
│ │ ├── monster_skills
│ │ │ ├── arcadia
│ │ │ │ ├── celestial_hills.xml
│ │ │ │ ├── fey_forest.xml
│ │ │ │ ├── oblivion_woods.xml
│ │ │ │ └── valley_of_titans.xml
│ │ │ ├── balserd's_refuge.xml
│ │ │ ├── event.xml
│ │ │ ├── island_of_dawn.xml
│ │ │ ├── ostgarath
│ │ │ │ └── furmount.xml
│ │ │ ├── poporia
│ │ │ │ ├── cliff_of_insanity.xml
│ │ │ │ ├── eldritch_academy_grounds.xml
│ │ │ │ ├── lake_of_tears.xml
│ │ │ │ ├── paraanon_ravine.xml
│ │ │ │ └── vale_of_the_fang.xml
│ │ │ ├── raid_boss.xml
│ │ │ ├── val_aurum
│ │ │ │ ├── aurum_road.xml
│ │ │ │ ├── basilisk_crag.xml
│ │ │ │ ├── colossal_ruins.xml
│ │ │ │ ├── dark_cathedral.xml
│ │ │ │ ├── freeholds.xml
│ │ │ │ └── tenebrous_mines.xml
│ │ │ └── val_palrada
│ │ │ │ └── quarantine_zone.xml
│ │ ├── mounts.xml
│ │ ├── playable_skills
│ │ │ ├── top_archer.xml
│ │ │ ├── top_lancer.xml
│ │ │ ├── top_priest.xml
│ │ │ ├── top_slayer.xml
│ │ │ ├── top_sorcerer.xml
│ │ │ └── top_warrior.xml
│ │ ├── player_skills
│ │ │ ├── archer.xml
│ │ │ ├── berserker.xml
│ │ │ ├── lancer.xml
│ │ │ ├── mystik.xml
│ │ │ ├── priest.xml
│ │ │ ├── rases.xml
│ │ │ ├── slayer.xml
│ │ │ ├── sork.xml
│ │ │ └── wariror.xml
│ │ └── summon_skills
│ │ │ ├── smoke_aggressor.xml
│ │ │ ├── thrall_of _protection.xml
│ │ │ ├── thrall_of _vengeance.xml
│ │ │ └── thrall_of_life.xml
│ ├── spawns
│ │ ├── event.xml
│ │ ├── island_of_dawn
│ │ │ ├── island_of_dawn.xml
│ │ │ ├── island_of_dawn_res.xml
│ │ │ └── island_of_dawn_res_quest.xml
│ │ ├── north_shara
│ │ │ ├── Amena Quatla 2.xml
│ │ │ ├── Amena Quatla.xml
│ │ │ ├── Darkquaver Woods 2.xml
│ │ │ ├── Darkquaver Woods.xml
│ │ │ ├── Labyrinth of Terror 2.xml
│ │ │ ├── Plain of the Damned 2.xml
│ │ │ ├── Seeliewood 2.xml
│ │ │ ├── Seeliewood.xml
│ │ │ ├── Susurrus Woods 2.xml
│ │ │ ├── Susurrus Woods.xml
│ │ │ ├── Thrallhold 2.xml
│ │ │ ├── Thrallhold.xml
│ │ │ ├── Tirkai Forest 2.xml
│ │ │ ├── Tirkai Forest.xml
│ │ │ ├── Vale of Spires 2.xml
│ │ │ ├── Vale of Spires .xml
│ │ │ ├── dragonfall.xml
│ │ │ ├── habere.xml
│ │ │ ├── kaiator.xml
│ │ │ ├── pathfinder.xml
│ │ │ └── scythera.xml
│ │ ├── raid_boss.xml
│ │ ├── south_arun
│ │ │ ├── LoT_res.xml
│ │ │ ├── arcadia.xml
│ │ │ ├── aurum_road_res.xml
│ │ │ ├── aurum_road_res_quest.xml
│ │ │ ├── basilisk_crag_res.xml
│ │ │ ├── basilisk_crag_res_quest.xml
│ │ │ ├── celestial_hills_res.xml
│ │ │ ├── celestial_hills_res_quest.xml
│ │ │ ├── fey_forest_res.xml
│ │ │ ├── fey_forest_res_quest.xml
│ │ │ ├── freeholds_res.xml
│ │ │ ├── freeholds_res_quest.xml
│ │ │ ├── fyrmount_quest_res.xml
│ │ │ ├── oblivion_woods_res.xml
│ │ │ ├── oblivion_woods_res_quest.xml
│ │ │ ├── ostograf.xml
│ │ │ ├── paraanon_res_quest.xml
│ │ │ ├── poporia.xml
│ │ │ ├── res_quest_COI.xml
│ │ │ ├── val_aureum.xml
│ │ │ ├── valeu_of_the_fang_res_quest.xml
│ │ │ ├── valley_of_titans_res.xml
│ │ │ ├── valley_of_titans_res_quest.xml
│ │ │ └── velika.xml
│ │ └── south_shara
│ │ │ ├── BR_res.xml
│ │ │ ├── QZ_res_quest.xml
│ │ │ ├── alemanthia.xml
│ │ │ ├── bastion_quest_res.xml
│ │ │ ├── val_palrada.xml
│ │ │ └── veritas_destrict.xml
│ ├── summons
│ │ ├── smoke_aggresion.xml
│ │ ├── thrall_of_life.xml
│ │ ├── thrall_of_protection.xml
│ │ ├── thrall_of_vengeance.xml
│ │ └── thrall_of_wrath.xml
│ ├── territories.xml
│ ├── towns.xml
│ └── zones.xml
├── libs
│ ├── bonecp-0.7.1.RELEASE.jar
│ ├── gnu-crypto-2.1.0.jar
│ ├── google-collect-1.0.jar
│ ├── mysql-connector-java-5.1.17.jar
│ └── slf4j-api-1.6.6.jar
└── startGameServer.bat
├── java
├── rlib
│ ├── DeadLockDetector.java
│ ├── DeadLockListener.java
│ ├── Monitoring.java
│ ├── concurrent
│ │ ├── AsynReadSynWriteLock.java
│ │ ├── FinalLock.java
│ │ ├── FinalReadWriteLock.java
│ │ ├── GroupThreadFactory.java
│ │ ├── Locks.java
│ │ └── SimpleReadWriteLock.java
│ ├── data
│ │ ├── AbstractDocument.java
│ │ ├── AbstractStreamDocument.java
│ │ └── DocumentXML.java
│ ├── database
│ │ ├── BoneCPConnectFactory.java
│ │ ├── CleaningManager.java
│ │ ├── CleaningQuery.java
│ │ ├── ConnectFactory.java
│ │ ├── DBUtils.java
│ │ └── DataBaseFactory.java
│ ├── gamemodel
│ │ └── GameObject.java
│ ├── geoengine
│ │ ├── GeoConfig.java
│ │ ├── GeoMap.java
│ │ ├── GeoMap3D.java
│ │ └── GeoQuard.java
│ ├── geom
│ │ ├── Angles.java
│ │ ├── Coords.java
│ │ ├── GamePoint.java
│ │ ├── Geometry.java
│ │ ├── Matrix3f.java
│ │ ├── Ray.java
│ │ ├── Rotation.java
│ │ ├── Vector.java
│ │ ├── VectorBuffer.java
│ │ ├── VectorType.java
│ │ └── bounding
│ │ │ ├── AbstractBounding.java
│ │ │ ├── AxisAlignedBoundingBox.java
│ │ │ ├── Bounding.java
│ │ │ ├── BoundingSphere.java
│ │ │ ├── BoundingType.java
│ │ │ ├── Boundings.java
│ │ │ └── OrientedBoundingBox.java
│ ├── idfactory
│ │ ├── BitSetIdGenerator.java
│ │ ├── IdGenerator.java
│ │ ├── IdGenerators.java
│ │ ├── PrimeFinder.java
│ │ └── SimpleIdGenerator.java
│ ├── logging
│ │ ├── ByteGameLogger.java
│ │ ├── GameLogger.java
│ │ ├── GameLoggers.java
│ │ ├── Logger.java
│ │ ├── LoggerListener.java
│ │ ├── Loggers.java
│ │ └── StringGameLogger.java
│ ├── network
│ │ ├── AbstractAsynConnection.java
│ │ ├── AbstractAsynchronousNetwork.java
│ │ ├── AsynConnection.java
│ │ ├── AsynchronousNetwork.java
│ │ ├── GameCrypt.java
│ │ ├── NetworkConfig.java
│ │ ├── NetworkFactory.java
│ │ ├── client
│ │ │ ├── ClientNetwork.java
│ │ │ ├── ConnectHandler.java
│ │ │ ├── DefaultClientNetwork.java
│ │ │ └── server
│ │ │ │ ├── AbstractServer.java
│ │ │ │ ├── AbstractServerConnection.java
│ │ │ │ ├── ConnectState.java
│ │ │ │ ├── Server.java
│ │ │ │ └── ServerConnection.java
│ │ ├── packets
│ │ │ ├── AbstractPacket.java
│ │ │ ├── AbstractReadeablePacket.java
│ │ │ ├── AbstractSendablePacket.java
│ │ │ ├── Packet.java
│ │ │ ├── ReadeablePacket.java
│ │ │ └── SendablePacket.java
│ │ └── server
│ │ │ ├── AcceptHandler.java
│ │ │ ├── DefaultServerNetwork.java
│ │ │ ├── ServerNetwork.java
│ │ │ └── client
│ │ │ ├── AbstractClient.java
│ │ │ ├── AbstractClientConnection.java
│ │ │ ├── Client.java
│ │ │ └── ClientConnection.java
│ └── util
│ │ ├── ExtMath.java
│ │ ├── Files.java
│ │ ├── Loadable.java
│ │ ├── Nameable.java
│ │ ├── NumberUtils.java
│ │ ├── Objects.java
│ │ ├── ReflectionUtils.java
│ │ ├── Reloadable.java
│ │ ├── Rnd.java
│ │ ├── SafeTask.java
│ │ ├── Strings.java
│ │ ├── SymmetryCrypt.java
│ │ ├── Synchronized.java
│ │ ├── Synchronizer.java
│ │ ├── Util.java
│ │ ├── VarTable.java
│ │ ├── array
│ │ ├── AbstractArray.java
│ │ ├── Array.java
│ │ ├── ArrayComparator.java
│ │ ├── ArrayIterator.java
│ │ ├── Arrays.java
│ │ ├── ConcurrentArray.java
│ │ ├── ConcurrentArraySet.java
│ │ ├── FastArray.java
│ │ ├── FastArraySet.java
│ │ ├── FastIntegerArray.java
│ │ ├── FastLongArray.java
│ │ ├── FuncElement.java
│ │ ├── IntegerArray.java
│ │ ├── LinkedArray.java
│ │ ├── LongArray.java
│ │ ├── Search.java
│ │ ├── SortedArray.java
│ │ └── SynchronizedArray.java
│ │ ├── pools
│ │ ├── ConcurrentFoldablePool.java
│ │ ├── FastFoldablePool.java
│ │ ├── Foldable.java
│ │ ├── FoldablePool.java
│ │ ├── MultiConcurrentFoldablePool.java
│ │ └── Pools.java
│ │ ├── random
│ │ ├── FastRandom.java
│ │ ├── Random.java
│ │ ├── Randoms.java
│ │ └── RealRandom.java
│ │ ├── sha160
│ │ ├── BaseHash.java
│ │ └── Sha160.java
│ │ ├── table
│ │ ├── AbstractTable.java
│ │ ├── ConcurrentIntegerTable.java
│ │ ├── ConcurrentLongTable.java
│ │ ├── ConcurrentObjectTable.java
│ │ ├── ConcurrentTable.java
│ │ ├── FastIntegerTable.java
│ │ ├── FastLongTable.java
│ │ ├── FastObjectTable.java
│ │ ├── FastTable.java
│ │ ├── FuncKeyValue.java
│ │ ├── FuncValue.java
│ │ ├── IntKey.java
│ │ ├── LongKey.java
│ │ ├── Table.java
│ │ ├── TableType.java
│ │ └── Tables.java
│ │ └── wraps
│ │ ├── AbstractWrap.java
│ │ ├── ByteWrap.java
│ │ ├── CharWrap.java
│ │ ├── DoubleWrap.java
│ │ ├── FloatWrap.java
│ │ ├── IntegerWrap.java
│ │ ├── LongWrap.java
│ │ ├── ObjectWrap.java
│ │ ├── ShortWrap.java
│ │ ├── Wrap.java
│ │ ├── WrapType.java
│ │ └── Wraps.java
└── tera
│ ├── Config.java
│ ├── gameserver
│ ├── GameServer.java
│ ├── IdFactory.java
│ ├── ServerThread.java
│ ├── document
│ │ ├── DocumentAnnounce.java
│ │ ├── DocumentConfig.java
│ │ ├── DocumentDialog.java
│ │ ├── DocumentDrop.java
│ │ ├── DocumentItem.java
│ │ ├── DocumentMessagePackage.java
│ │ ├── DocumentMinion.java
│ │ ├── DocumentNpc.java
│ │ ├── DocumentNpcAppearance.java
│ │ ├── DocumentNpcConfigAI.java
│ │ ├── DocumentNpcSpawn.java
│ │ ├── DocumentPlayer.java
│ │ ├── DocumentQuest.java
│ │ ├── DocumentQuestCondition.java
│ │ ├── DocumentRaceAppearance.java
│ │ ├── DocumentRaceStats.java
│ │ ├── DocumentRegionWar.java
│ │ ├── DocumentResourse.java
│ │ ├── DocumentResourseSpawn.java
│ │ ├── DocumentSkill.java
│ │ ├── DocumentSkillLearn.java
│ │ ├── DocumentSnifferOpcode.java
│ │ ├── DocumentTerritory.java
│ │ ├── DocumentTown.java
│ │ └── DocumentWorldZone.java
│ ├── events
│ │ ├── Event.java
│ │ ├── EventConstant.java
│ │ ├── EventPlayer.java
│ │ ├── EventState.java
│ │ ├── EventTeam.java
│ │ ├── EventType.java
│ │ ├── EventUtils.java
│ │ ├── NpcInteractEvent.java
│ │ ├── Registered.java
│ │ ├── auto
│ │ │ ├── AbstractAutoEvent.java
│ │ │ ├── EpicBattle.java
│ │ │ ├── LastHero.java
│ │ │ ├── TeamDeathMatch.java
│ │ │ ├── TeamVsTeam.java
│ │ │ └── Tournament.java
│ │ └── global
│ │ │ ├── AbstractGlobalEvent.java
│ │ │ └── regionwars
│ │ │ ├── Region.java
│ │ │ ├── RegionState.java
│ │ │ ├── RegionWarNpc.java
│ │ │ └── RegionWars.java
│ ├── manager
│ │ ├── AccountManager.java
│ │ ├── AnnounceManager.java
│ │ ├── AutoSaveManager.java
│ │ ├── BossSpawnManager.java
│ │ ├── CommandManager.java
│ │ ├── DataBaseManager.java
│ │ ├── DebugManager.java
│ │ ├── EventManager.java
│ │ ├── ExecutorManager.java
│ │ ├── GameLogManager.java
│ │ ├── GeoManager.java
│ │ ├── GuildManager.java
│ │ ├── ItemExecutorManager.java
│ │ ├── ObjectEventManager.java
│ │ ├── OnlineManager.java
│ │ ├── PacketManager.java
│ │ ├── PlayerManager.java
│ │ ├── QuestManager.java
│ │ ├── RandomManager.java
│ │ ├── ServerVarManager.java
│ │ ├── ShutdownManager.java
│ │ └── SkillLearnManager.java
│ ├── model
│ │ ├── Account.java
│ │ ├── AttackInfo.java
│ │ ├── Bonfire.java
│ │ ├── BuyableItem.java
│ │ ├── Character.java
│ │ ├── Duel.java
│ │ ├── DuelPlayer.java
│ │ ├── EffectList.java
│ │ ├── EmotionType.java
│ │ ├── FriendInfo.java
│ │ ├── FriendList.java
│ │ ├── Guild.java
│ │ ├── GuildIcon.java
│ │ ├── GuildLog.java
│ │ ├── GuildMember.java
│ │ ├── GuildRank.java
│ │ ├── GuildRankLaw.java
│ │ ├── HateInfo.java
│ │ ├── MessageType.java
│ │ ├── MinionData.java
│ │ ├── MoveType.java
│ │ ├── NpcAIState.java
│ │ ├── Party.java
│ │ ├── PegasInfo.java
│ │ ├── ReactionType.java
│ │ ├── ReuseSkill.java
│ │ ├── Route.java
│ │ ├── SayType.java
│ │ ├── SellableItem.java
│ │ ├── SkillLearn.java
│ │ ├── TObject.java
│ │ ├── TeleportRegion.java
│ │ ├── TownInfo.java
│ │ ├── TradeItem.java
│ │ ├── WaitCastSkill.java
│ │ ├── World.java
│ │ ├── WorldRegion.java
│ │ ├── WorldZone.java
│ │ ├── actions
│ │ │ ├── Action.java
│ │ │ ├── ActionType.java
│ │ │ ├── classes
│ │ │ │ ├── AbstractAction.java
│ │ │ │ ├── BindItemAction.java
│ │ │ │ ├── DuelStartAction.java
│ │ │ │ ├── EnchantItemAction.java
│ │ │ │ ├── GuildCreateAction.java
│ │ │ │ ├── GuildInviteAction.java
│ │ │ │ ├── JoinGuildAction.java
│ │ │ │ ├── PartyInviteAction.java
│ │ │ │ ├── PlayerAction.java
│ │ │ │ └── TradeStartAction.java
│ │ │ └── dialogs
│ │ │ │ ├── AbstractActionDialog.java
│ │ │ │ ├── ActionDialog.java
│ │ │ │ ├── ActionDialogType.java
│ │ │ │ ├── EnchantItemDialog.java
│ │ │ │ └── TradeDialog.java
│ │ ├── ai
│ │ │ ├── AI.java
│ │ │ ├── AbstractAI.java
│ │ │ ├── AbstractCharacterAI.java
│ │ │ ├── CharacterAI.java
│ │ │ ├── PlayerAI.java
│ │ │ └── npc
│ │ │ │ ├── ConfigAI.java
│ │ │ │ ├── MessagePackage.java
│ │ │ │ ├── NpcAI.java
│ │ │ │ ├── NpcAIClass.java
│ │ │ │ ├── Task.java
│ │ │ │ ├── TaskType.java
│ │ │ │ ├── classes
│ │ │ │ ├── AbstractNpcAI.java
│ │ │ │ ├── AbstractSummonAI.java
│ │ │ │ ├── BattleGuardAI.java
│ │ │ │ ├── DefaultNpcAI.java
│ │ │ │ ├── DefaultSummonAI.java
│ │ │ │ ├── EpicBattleAI.java
│ │ │ │ ├── EventMonsterAI.java
│ │ │ │ ├── PatrolAI.java
│ │ │ │ └── RegionWarDefenseAI.java
│ │ │ │ ├── taskfactory
│ │ │ │ ├── AbstractTaskFactory.java
│ │ │ │ ├── DefaultBattleTaskFactory.java
│ │ │ │ ├── DefaultPatrolTaskFactory.java
│ │ │ │ ├── DefaultRageTaskFactory.java
│ │ │ │ ├── DefaultReturnTaskFactory.java
│ │ │ │ ├── DefaultRunAwayTaskFactory.java
│ │ │ │ ├── DefaultWaitTaskFactory.java
│ │ │ │ ├── EventHealBattleTaskFactory.java
│ │ │ │ ├── EventRangerBattleTaskFactory.java
│ │ │ │ ├── EventSlayerBattleTaskFactory.java
│ │ │ │ ├── HealBattleTaskFactory.java
│ │ │ │ ├── SummonBattleTaskFactory.java
│ │ │ │ ├── SummonHealWaitTaskFactory.java
│ │ │ │ ├── SummonRangeBattleTaskFactory.java
│ │ │ │ ├── SummonReturnTaskFactory.java
│ │ │ │ ├── SummonWaitTaskFactory.java
│ │ │ │ └── TaskFactory.java
│ │ │ │ └── thinkaction
│ │ │ │ ├── AbstractThinkAction.java
│ │ │ │ ├── DefaultBattleAction.java
│ │ │ │ ├── DefaultPatrolAction.java
│ │ │ │ ├── DefaultRageAction.java
│ │ │ │ ├── DefaultReturnAction.java
│ │ │ │ ├── DefaultRunAwayAction.java
│ │ │ │ ├── DefaultWaitAction.java
│ │ │ │ ├── NoBattleAction.java
│ │ │ │ ├── NoRestoreReturnAction.java
│ │ │ │ ├── NoWaitAction.java
│ │ │ │ ├── RegionWarBattleAction.java
│ │ │ │ ├── SummonBattleAction.java
│ │ │ │ ├── SummonReturnAction.java
│ │ │ │ ├── SummonWaitAction.java
│ │ │ │ └── ThinkAction.java
│ │ ├── base
│ │ │ ├── Experience.java
│ │ │ ├── PlayerClass.java
│ │ │ ├── PlayerGeomTable.java
│ │ │ ├── Race.java
│ │ │ └── Sex.java
│ │ ├── drop
│ │ │ ├── AbstractDrop.java
│ │ │ ├── Drop.java
│ │ │ ├── DropGroup.java
│ │ │ ├── DropInfo.java
│ │ │ ├── NpcDrop.java
│ │ │ └── ResourseDrop.java
│ │ ├── equipment
│ │ │ ├── AbstractEquipment.java
│ │ │ ├── Equipment.java
│ │ │ ├── PlayerEquipment.java
│ │ │ ├── Slot.java
│ │ │ └── SlotType.java
│ │ ├── geom
│ │ │ ├── AbstractGeom.java
│ │ │ ├── Geom.java
│ │ │ ├── NpcGeom.java
│ │ │ └── PlayerGeom.java
│ │ ├── inventory
│ │ │ ├── AbstractBank.java
│ │ │ ├── AbstractInventory.java
│ │ │ ├── Bank.java
│ │ │ ├── Cell.java
│ │ │ ├── GuildBank.java
│ │ │ ├── Inventory.java
│ │ │ ├── PlayerBank.java
│ │ │ └── PlayerInventory.java
│ │ ├── items
│ │ │ ├── ArmorInstance.java
│ │ │ ├── ArmorKind.java
│ │ │ ├── ArmorType.java
│ │ │ ├── BindType.java
│ │ │ ├── CommonInstance.java
│ │ │ ├── CommonType.java
│ │ │ ├── CrystalInstance.java
│ │ │ ├── CrystalList.java
│ │ │ ├── CrystalType.java
│ │ │ ├── GearedInstance.java
│ │ │ ├── ItemClass.java
│ │ │ ├── ItemInstance.java
│ │ │ ├── ItemLocation.java
│ │ │ ├── Rank.java
│ │ │ ├── StackType.java
│ │ │ ├── WeaponInstance.java
│ │ │ └── WeaponType.java
│ │ ├── listeners
│ │ │ ├── DamageListener.java
│ │ │ ├── DeleteListener.java
│ │ │ ├── DieListener.java
│ │ │ ├── LevelUpListener.java
│ │ │ ├── PlayerSelectListener.java
│ │ │ ├── PlayerSpawnListener.java
│ │ │ └── TerritoryListener.java
│ │ ├── npc
│ │ │ ├── AggroInfo.java
│ │ │ ├── BattleGuard.java
│ │ │ ├── EliteMonster.java
│ │ │ ├── EventMonster.java
│ │ │ ├── FriendNpc.java
│ │ │ ├── Guard.java
│ │ │ ├── Minion.java
│ │ │ ├── MinionLeader.java
│ │ │ ├── Monster.java
│ │ │ ├── Npc.java
│ │ │ ├── NpcBarrier.java
│ │ │ ├── NpcObject.java
│ │ │ ├── NpcType.java
│ │ │ ├── RaidBoss.java
│ │ │ ├── RegionWarBarrier.java
│ │ │ ├── RegionWarControl.java
│ │ │ ├── RegionWarDefense.java
│ │ │ ├── RegionWarShop.java
│ │ │ ├── SocialMonster.java
│ │ │ ├── TaxationNpc.java
│ │ │ ├── interaction
│ │ │ │ ├── Condition.java
│ │ │ │ ├── DialogData.java
│ │ │ │ ├── IconType.java
│ │ │ │ ├── Link.java
│ │ │ │ ├── LinkType.java
│ │ │ │ ├── conditions
│ │ │ │ │ ├── AbstractCondition.java
│ │ │ │ │ ├── ConditionLogicAnd.java
│ │ │ │ │ ├── ConditionLogicNot.java
│ │ │ │ │ ├── ConditionLogicOr.java
│ │ │ │ │ ├── ConditionNpcId.java
│ │ │ │ │ ├── ConditionPlayeClasses.java
│ │ │ │ │ ├── ConditionPlayerHasItem.java
│ │ │ │ │ ├── ConditionPlayerHeart.java
│ │ │ │ │ ├── ConditionPlayerLearnedSkill.java
│ │ │ │ │ ├── ConditionPlayerMaxLevel.java
│ │ │ │ │ ├── ConditionPlayerMinLevel.java
│ │ │ │ │ ├── ConditionPlayerMoreVar.java
│ │ │ │ │ ├── ConditionPlayerRaces.java
│ │ │ │ │ ├── ConditionPlayerVar.java
│ │ │ │ │ ├── ConditionQuestAgoComplete.java
│ │ │ │ │ ├── ConditionQuestComplete.java
│ │ │ │ │ └── ConditionQuestState.java
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── AbstractDialog.java
│ │ │ │ │ ├── BankDialog.java
│ │ │ │ │ ├── CreateGuildDialog.java
│ │ │ │ │ ├── Dialog.java
│ │ │ │ │ ├── DialogType.java
│ │ │ │ │ ├── GuildBankDialog.java
│ │ │ │ │ ├── LoadGuildIcon.java
│ │ │ │ │ ├── MultiShopDialog.java
│ │ │ │ │ ├── PegasDialog.java
│ │ │ │ │ ├── PlayerBankDialog.java
│ │ │ │ │ ├── ShopDialog.java
│ │ │ │ │ ├── SkillShopDialog.java
│ │ │ │ │ └── TeleportDialog.java
│ │ │ │ ├── links
│ │ │ │ │ ├── AbstractLink.java
│ │ │ │ │ ├── ControlLink.java
│ │ │ │ │ ├── NpcLink.java
│ │ │ │ │ └── QuestLink.java
│ │ │ │ └── replyes
│ │ │ │ │ ├── AbstractReply.java
│ │ │ │ │ ├── Reply.java
│ │ │ │ │ ├── ReplyCreateGuild.java
│ │ │ │ │ ├── ReplyEventReward.java
│ │ │ │ │ ├── ReplyGuildBank.java
│ │ │ │ │ ├── ReplyHeroPoint.java
│ │ │ │ │ ├── ReplyHeroPointToGold.java
│ │ │ │ │ ├── ReplyKillStatistic.java
│ │ │ │ │ ├── ReplyLoagGuildIcon.java
│ │ │ │ │ ├── ReplyMultiShop.java
│ │ │ │ │ ├── ReplyPegas.java
│ │ │ │ │ ├── ReplyPlayerBank.java
│ │ │ │ │ ├── ReplyRestoreHp.java
│ │ │ │ │ ├── ReplyRestoreMp.java
│ │ │ │ │ ├── ReplyRestoreStamina.java
│ │ │ │ │ ├── ReplyShop.java
│ │ │ │ │ ├── ReplySkillShop.java
│ │ │ │ │ └── ReplyTeleport.java
│ │ │ ├── playable
│ │ │ │ ├── EventEpicBattleNpc.java
│ │ │ │ ├── NpcAppearance.java
│ │ │ │ ├── PlayableNpc.java
│ │ │ │ └── PlayerKiller.java
│ │ │ ├── spawn
│ │ │ │ ├── BossSpawn.java
│ │ │ │ ├── MinionSpawn.java
│ │ │ │ ├── NpcSpawn.java
│ │ │ │ ├── RegionWarSpawn.java
│ │ │ │ ├── Spawn.java
│ │ │ │ └── SummonSpawn.java
│ │ │ └── summons
│ │ │ │ ├── DefaultSummon.java
│ │ │ │ ├── PlayableSummon.java
│ │ │ │ ├── PlayerSummon.java
│ │ │ │ ├── SmokeSummon.java
│ │ │ │ └── Summon.java
│ │ ├── playable
│ │ │ ├── DeprecatedPlayerFace.java
│ │ │ ├── Playable.java
│ │ │ ├── Player.java
│ │ │ ├── PlayerAppearance.java
│ │ │ └── PlayerPreview.java
│ │ ├── quests
│ │ │ ├── NpcIconType.java
│ │ │ ├── Quest.java
│ │ │ ├── QuestAction.java
│ │ │ ├── QuestActionType.java
│ │ │ ├── QuestData.java
│ │ │ ├── QuestDate.java
│ │ │ ├── QuestEvent.java
│ │ │ ├── QuestEventListener.java
│ │ │ ├── QuestEventType.java
│ │ │ ├── QuestList.java
│ │ │ ├── QuestPanelState.java
│ │ │ ├── QuestState.java
│ │ │ ├── QuestType.java
│ │ │ ├── QuestUtils.java
│ │ │ ├── Reward.java
│ │ │ ├── actions
│ │ │ │ ├── AbstractQuestAction.java
│ │ │ │ ├── ActionAddExp.java
│ │ │ │ ├── ActionAddItem.java
│ │ │ │ ├── ActionAddReward.java
│ │ │ │ ├── ActionAddVar.java
│ │ │ │ ├── ActionClearVar.java
│ │ │ │ ├── ActionDropItem.java
│ │ │ │ ├── ActionEventMessage.java
│ │ │ │ ├── ActionFinishQuest.java
│ │ │ │ ├── ActionMoveToPanel.java
│ │ │ │ ├── ActionQuestCancel.java
│ │ │ │ ├── ActionQuestFinish.java
│ │ │ │ ├── ActionQuestMovie.java
│ │ │ │ ├── ActionQuestStart.java
│ │ │ │ ├── ActionRemoveItem.java
│ │ │ │ ├── ActionSetNpcIcon.java
│ │ │ │ ├── ActionSetQuestState.java
│ │ │ │ ├── ActionShowQuestInfo.java
│ │ │ │ ├── ActionStateQuest.java
│ │ │ │ ├── ActionSubVar.java
│ │ │ │ ├── ActionSystemMessage.java
│ │ │ │ ├── ActionUpdateCounter.java
│ │ │ │ ├── ActionUpdateIntresting.java
│ │ │ │ └── ActionUpdateItemCounter.java
│ │ │ ├── classes
│ │ │ │ ├── AbstractQuest.java
│ │ │ │ ├── DealyQuest.java
│ │ │ │ ├── GuildQuest.java
│ │ │ │ ├── LevelUpQuest.java
│ │ │ │ ├── StoryQuest.java
│ │ │ │ └── ZoneQuest.java
│ │ │ └── events
│ │ │ │ ├── AbstractQuestEventListener.java
│ │ │ │ ├── AcceptedQuestListener.java
│ │ │ │ ├── AddNpcListener.java
│ │ │ │ ├── CanceledQuestListener.java
│ │ │ │ ├── CollectResourseListener.java
│ │ │ │ ├── EmptyListener.java
│ │ │ │ ├── FinishedQuestListener.java
│ │ │ │ ├── InventoryAddItemListener.java
│ │ │ │ ├── InventoryRemoveItemListener.java
│ │ │ │ ├── KillNpcListener.java
│ │ │ │ ├── LinkSelectListener.java
│ │ │ │ ├── PickUpItemListener.java
│ │ │ │ ├── QuestMovieListener.java
│ │ │ │ ├── SkillLearnListener.java
│ │ │ │ └── UseItemListener.java
│ │ ├── regenerations
│ │ │ ├── AbstractRegen.java
│ │ │ ├── NpcRegenHp.java
│ │ │ ├── NpcRegenMp.java
│ │ │ ├── PlayerNegativeRegenMp.java
│ │ │ ├── PlayerPositiveRegenMp.java
│ │ │ ├── PlayerRegenHp.java
│ │ │ └── Regen.java
│ │ ├── resourse
│ │ │ ├── EnergyResourse.java
│ │ │ ├── MiningResourse.java
│ │ │ ├── PlantResourse.java
│ │ │ ├── QuestResourse.java
│ │ │ ├── ResourseInstance.java
│ │ │ ├── ResourseSpawn.java
│ │ │ └── ResourseType.java
│ │ ├── skillengine
│ │ │ ├── Calculator.java
│ │ │ ├── ChanceType.java
│ │ │ ├── Condition.java
│ │ │ ├── Effect.java
│ │ │ ├── EffectState.java
│ │ │ ├── EffectType.java
│ │ │ ├── Formulas.java
│ │ │ ├── OperateType.java
│ │ │ ├── ResistType.java
│ │ │ ├── Skill.java
│ │ │ ├── SkillGroup.java
│ │ │ ├── SkillName.java
│ │ │ ├── SkillRangeType.java
│ │ │ ├── SkillType.java
│ │ │ ├── StatType.java
│ │ │ ├── TargetType.java
│ │ │ ├── classes
│ │ │ │ ├── AbsorptionHp.java
│ │ │ │ ├── AbstractSkill.java
│ │ │ │ ├── Aggro.java
│ │ │ │ ├── AutoSingleShot.java
│ │ │ │ ├── Buff.java
│ │ │ │ ├── CancelCast.java
│ │ │ │ ├── CancelOwerturn.java
│ │ │ │ ├── ChanceEffect.java
│ │ │ │ ├── Charge.java
│ │ │ │ ├── ChargeComplexStrike.java
│ │ │ │ ├── ChargeDam.java
│ │ │ │ ├── ChargeManaHeal.java
│ │ │ │ ├── ChargeRailFastManaShot.java
│ │ │ │ ├── ChargeSingleShot.java
│ │ │ │ ├── ChargeSingleSlowShot.java
│ │ │ │ ├── ChargeStrike.java
│ │ │ │ ├── ChargeVampStrike.java
│ │ │ │ ├── CharmBuff.java
│ │ │ │ ├── ClearBuff.java
│ │ │ │ ├── ClearDebuff.java
│ │ │ │ ├── ComplexModStrike.java
│ │ │ │ ├── ComplexStrike.java
│ │ │ │ ├── ConterStrike.java
│ │ │ │ ├── Cyclone.java
│ │ │ │ ├── Debuff.java
│ │ │ │ ├── Defense.java
│ │ │ │ ├── Effect.java
│ │ │ │ ├── Heal.java
│ │ │ │ ├── HealPercent.java
│ │ │ │ ├── ItemBuff.java
│ │ │ │ ├── Jump.java
│ │ │ │ ├── LancerDefense.java
│ │ │ │ ├── Leash.java
│ │ │ │ ├── LockOn.java
│ │ │ │ ├── LockOnEffect.java
│ │ │ │ ├── LockOnHeal.java
│ │ │ │ ├── LockOnStrike.java
│ │ │ │ ├── LockOnStrikePartyBuff.java
│ │ │ │ ├── ManaGainStrike.java
│ │ │ │ ├── ManaHeal.java
│ │ │ │ ├── ManaHealOnAbsorptionHp.java
│ │ │ │ ├── ManaHealPercent.java
│ │ │ │ ├── ManaSingleShot.java
│ │ │ │ ├── ManaSingleSlowShot.java
│ │ │ │ ├── ManaStrike.java
│ │ │ │ ├── Mount.java
│ │ │ │ ├── NpcSingleFastShot.java
│ │ │ │ ├── NpcSingleShot.java
│ │ │ │ ├── NpcSingleSlowShot.java
│ │ │ │ ├── OwerturnedStrike.java
│ │ │ │ ├── PartySummon.java
│ │ │ │ ├── Passive.java
│ │ │ │ ├── PrepareManaHeal.java
│ │ │ │ ├── PrepareNextSkill.java
│ │ │ │ ├── PrepareStrike.java
│ │ │ │ ├── PvPMode.java
│ │ │ │ ├── RestoreStamina.java
│ │ │ │ ├── Resurrect.java
│ │ │ │ ├── SingleShot.java
│ │ │ │ ├── SingleSlowShot.java
│ │ │ │ ├── SlayerFuryStrike.java
│ │ │ │ ├── SpawnBonfire.java
│ │ │ │ ├── SpawnBuffTrap.java
│ │ │ │ ├── SpawnItem.java
│ │ │ │ ├── SpawnSmokeSummon.java
│ │ │ │ ├── SpawnSummon.java
│ │ │ │ ├── SpawnTrap.java
│ │ │ │ ├── StageStrike.java
│ │ │ │ ├── Strike.java
│ │ │ │ ├── SummonAbort.java
│ │ │ │ ├── SummonAttack.java
│ │ │ │ ├── TeleportJump.java
│ │ │ │ ├── TeleportNearBonfire.java
│ │ │ │ ├── TeleportTown.java
│ │ │ │ ├── Transform.java
│ │ │ │ ├── Trigger.java
│ │ │ │ ├── UnAggro.java
│ │ │ │ ├── UpdateBonfire.java
│ │ │ │ └── WarriorFuryStrike.java
│ │ │ ├── conditions
│ │ │ │ ├── AbstractCondition.java
│ │ │ │ ├── ConditionAttackerAggroMe.java
│ │ │ │ ├── ConditionAttackerEffectorEffectId.java
│ │ │ │ ├── ConditionAttackerNpcRage.java
│ │ │ │ ├── ConditionAttackerNpcType.java
│ │ │ │ ├── ConditionAttackerNpcTypes.java
│ │ │ │ ├── ConditionAttackerOwerturned.java
│ │ │ │ ├── ConditionAttackerPvP.java
│ │ │ │ ├── ConditionAttackerSide.java
│ │ │ │ ├── ConditionHasEffectId.java
│ │ │ │ ├── ConditionLogicAnd.java
│ │ │ │ ├── ConditionLogicNot.java
│ │ │ │ ├── ConditionLogicOr.java
│ │ │ │ ├── ConditionPlayerBattleStance.java
│ │ │ │ ├── ConditionPlayerCastSkillName.java
│ │ │ │ ├── ConditionPlayerNotBarrier.java
│ │ │ │ ├── ConditionPlayerOnCast.java
│ │ │ │ ├── ConditionPlayerOwerturned.java
│ │ │ │ ├── ConditionPlayerPercentHP.java
│ │ │ │ ├── ConditionPlayerStamina.java
│ │ │ │ ├── ConditionTargetAggroMe.java
│ │ │ │ ├── ConditionTargetNpcRage.java
│ │ │ │ ├── ConditionTargetNpcType.java
│ │ │ │ ├── ConditionTargetNpcTypes.java
│ │ │ │ ├── ConditionTargetOwerturned.java
│ │ │ │ ├── ConditionTargetPlayer.java
│ │ │ │ ├── ConditionTargetSide.java
│ │ │ │ └── ConditionUsingItem.java
│ │ │ ├── effects
│ │ │ │ ├── AbstractAura.java
│ │ │ │ ├── AbstractEffect.java
│ │ │ │ ├── AuraManaDamOverTime.java
│ │ │ │ ├── Buff.java
│ │ │ │ ├── CancelDebuff.java
│ │ │ │ ├── CancelEffect.java
│ │ │ │ ├── CharmBuff.java
│ │ │ │ ├── DamOverTime.java
│ │ │ │ ├── DamOverTimePercent.java
│ │ │ │ ├── DamageAbsorption.java
│ │ │ │ ├── DamageTransfer.java
│ │ │ │ ├── Debuff.java
│ │ │ │ ├── Heal.java
│ │ │ │ ├── HealMod.java
│ │ │ │ ├── HealOverTime.java
│ │ │ │ ├── Invul.java
│ │ │ │ ├── ManaHealOverTime.java
│ │ │ │ ├── ManaHealOverTimePercent.java
│ │ │ │ ├── NoBattleEffect.java
│ │ │ │ ├── NoOwerturnEffect.java
│ │ │ │ ├── PercentHealOverTime.java
│ │ │ │ ├── Pheonix.java
│ │ │ │ ├── Root.java
│ │ │ │ ├── SkillBlocking.java
│ │ │ │ ├── Stun.java
│ │ │ │ └── Turn.java
│ │ │ ├── funcs
│ │ │ │ ├── Func.java
│ │ │ │ ├── StatFunc.java
│ │ │ │ ├── chance
│ │ │ │ │ ├── AbstractChanceFunc.java
│ │ │ │ │ ├── ApplySkill.java
│ │ │ │ │ ├── ChanceFunc.java
│ │ │ │ │ ├── ChanceFuncManager.java
│ │ │ │ │ └── UseSkill.java
│ │ │ │ ├── stat
│ │ │ │ │ ├── AbstractStatFunc.java
│ │ │ │ │ ├── FuncFactory.java
│ │ │ │ │ └── MathFunc.java
│ │ │ │ └── task
│ │ │ │ │ ├── AbstractTaskFunc.java
│ │ │ │ │ ├── HealTask.java
│ │ │ │ │ ├── ManaHealTask.java
│ │ │ │ │ └── TaskFunc.java
│ │ │ ├── lambdas
│ │ │ │ ├── FloatAdd.java
│ │ │ │ ├── FloatDiv.java
│ │ │ │ ├── FloatMul.java
│ │ │ │ ├── FloatSet.java
│ │ │ │ ├── FloatSub.java
│ │ │ │ ├── Lambda.java
│ │ │ │ └── LambdaFloat.java
│ │ │ ├── shots
│ │ │ │ ├── AbstractAutoShot.java
│ │ │ │ ├── AbstractShot.java
│ │ │ │ ├── FastAutoShot.java
│ │ │ │ ├── FastShot.java
│ │ │ │ ├── NpcFastShot.java
│ │ │ │ ├── ObjectShot.java
│ │ │ │ ├── Shot.java
│ │ │ │ ├── ShotType.java
│ │ │ │ └── SlowShot.java
│ │ │ └── targethandler
│ │ │ │ ├── AbstractTargetHandler.java
│ │ │ │ ├── AreOneTargetHandler.java
│ │ │ │ ├── AreaFractionTargetHandler.java
│ │ │ │ ├── AreaOwnerTargetHandler.java
│ │ │ │ ├── AreaPartyGuildTargetHandler.java
│ │ │ │ ├── AreaPartyTargetHandler.java
│ │ │ │ ├── AreaTargetHandler.java
│ │ │ │ ├── AuraFractionTargetHandler.java
│ │ │ │ ├── AuraOwnerTargetHandler.java
│ │ │ │ ├── AuraPartyTargetHandler.java
│ │ │ │ ├── AuraTargetHandler.java
│ │ │ │ ├── NoneTargetHandler.java
│ │ │ │ ├── SelfTargetHandler.java
│ │ │ │ └── TargetHandler.java
│ │ ├── territory
│ │ │ ├── AbstractTerritory.java
│ │ │ ├── BattleTerritory.java
│ │ │ ├── BonfireTerritory.java
│ │ │ ├── ClimbTerritory.java
│ │ │ ├── LocalTerritory.java
│ │ │ ├── PeaceTerritory.java
│ │ │ ├── RegionTerritory.java
│ │ │ ├── Territory.java
│ │ │ └── TerritoryType.java
│ │ ├── traps
│ │ │ ├── BuffTrap.java
│ │ │ └── Trap.java
│ │ └── worldobject
│ │ │ ├── BonfireObject.java
│ │ │ └── WorldObject.java
│ ├── network
│ │ ├── ClientPacketType.java
│ │ ├── Network.java
│ │ ├── Opcodes.java
│ │ ├── ServerPacketType.java
│ │ ├── clientpackets
│ │ │ ├── AssentTrade.java
│ │ │ ├── CanBeUsedName.java
│ │ │ ├── CancelTrade.java
│ │ │ ├── CharacterQuitCancel.java
│ │ │ ├── CharacterRestartCancel.java
│ │ │ ├── ClientKey.java
│ │ │ ├── ClientPacket.java
│ │ │ ├── EnchantFinish.java
│ │ │ ├── EnteredWorld.java
│ │ │ ├── NameChange.java
│ │ │ ├── PlayerClimb.java
│ │ │ ├── PlayerMove.java
│ │ │ ├── PlayerMoveOnSkill.java
│ │ │ ├── PlayerSay.java
│ │ │ ├── PrivateSay.java
│ │ │ ├── QuestMovieEnded.java
│ │ │ ├── RequestActionAgree.java
│ │ │ ├── RequestActionCancel.java
│ │ │ ├── RequestActionDialogCancel.java
│ │ │ ├── RequestActionInvite.java
│ │ │ ├── RequestAddEnchantItem.java
│ │ │ ├── RequestAuthLogin.java
│ │ │ ├── RequestBankAdd.java
│ │ │ ├── RequestBankChangeTab.java
│ │ │ ├── RequestBankMovingItem.java
│ │ │ ├── RequestBankSub.java
│ │ │ ├── RequestCancelQuest.java
│ │ │ ├── RequestClientClose.java
│ │ │ ├── RequestCollectResourse.java
│ │ │ ├── RequestConfirmServer.java
│ │ │ ├── RequestCreatePlayer.java
│ │ │ ├── RequestDeleteItem.java
│ │ │ ├── RequestDeletePlayer.java
│ │ │ ├── RequestDialogCancel.java
│ │ │ ├── RequestDressingItem.java
│ │ │ ├── RequestDuelCancel.java
│ │ │ ├── RequestFriendAdd.java
│ │ │ ├── RequestFriendList.java
│ │ │ ├── RequestFriendRemove.java
│ │ │ ├── RequestGuildChangeRank.java
│ │ │ ├── RequestGuildCreateRank.java
│ │ │ ├── RequestGuildExclude.java
│ │ │ ├── RequestGuildIcon.java
│ │ │ ├── RequestGuildInfo.java
│ │ │ ├── RequestGuildInvite.java
│ │ │ ├── RequestGuildLeave.java
│ │ │ ├── RequestGuildLoadIcon.java
│ │ │ ├── RequestGuildMakeLeader.java
│ │ │ ├── RequestGuildRemoveRank.java
│ │ │ ├── RequestGuildUpdateMessage.java
│ │ │ ├── RequestGuildUpdateNote.java
│ │ │ ├── RequestGuildUpdateRank.java
│ │ │ ├── RequestGuildUpdateTitle.java
│ │ │ ├── RequestInventoryInfo.java
│ │ │ ├── RequestInventoryInfoItem.java
│ │ │ ├── RequestInventoryMovingItem.java
│ │ │ ├── RequestItemTemplateInfo.java
│ │ │ ├── RequestLocalTeleport.java
│ │ │ ├── RequestLockOnTarget.java
│ │ │ ├── RequestNpcAddBuyShop.java
│ │ │ ├── RequestNpcAddSellShop.java
│ │ │ ├── RequestNpcConfirmShop.java
│ │ │ ├── RequestNpcConfirmSkillShop.java
│ │ │ ├── RequestNpcInteraction.java
│ │ │ ├── RequestNpcLink.java
│ │ │ ├── RequestNpcStartPegasFly.java
│ │ │ ├── RequestNpcSubBuyShop.java
│ │ │ ├── RequestNpcSubSellShop.java
│ │ │ ├── RequestPartyChange.java
│ │ │ ├── RequestPartyDisband.java
│ │ │ ├── RequestPartyInvite.java
│ │ │ ├── RequestPartyKick.java
│ │ │ ├── RequestPartyLeave.java
│ │ │ ├── RequestPartyMakeLeader.java
│ │ │ ├── RequestPickUpItem.java
│ │ │ ├── RequestPlayerList.java
│ │ │ ├── RequestPlayerUnstuck.java
│ │ │ ├── RequestRessurect.java
│ │ │ ├── RequestRestart.java
│ │ │ ├── RequestServerCheck.java
│ │ │ ├── RequestSkillAction.java
│ │ │ ├── RequestSortInventory.java
│ │ │ ├── RequestStartClimb.java
│ │ │ ├── RequestStartEmotion.java
│ │ │ ├── RequestState.java
│ │ │ ├── RequestTradeAddItem.java
│ │ │ ├── RequestTradeLock.java
│ │ │ ├── RequestUpdateQuestPanel.java
│ │ │ ├── RequestUseDefenseSkill.java
│ │ │ ├── RequestUseItem.java
│ │ │ ├── RequestUseQueueSkill.java
│ │ │ ├── RequestUseRangeSkill.java
│ │ │ ├── RequestUseRushSkill.java
│ │ │ ├── RequestUseScroll.java
│ │ │ ├── RequestUseShortSkill.java
│ │ │ ├── RequestWorldZone.java
│ │ │ ├── SelectSkillLearn.java
│ │ │ ├── SelectedPlayer.java
│ │ │ ├── UpdateClientSetting.java
│ │ │ ├── UpdateHotKey.java
│ │ │ └── UpdateTitle.java
│ │ ├── crypt
│ │ │ ├── Crypt.java
│ │ │ ├── CryptKey.java
│ │ │ ├── CryptorState.java
│ │ │ └── TeraCrypt.java
│ │ ├── model
│ │ │ ├── ServerAcceptHandler.java
│ │ │ ├── ServerNetworkConfig.java
│ │ │ ├── UserAsynConnection.java
│ │ │ └── UserClient.java
│ │ └── serverpackets
│ │ │ ├── ActionDialogCancel.java
│ │ │ ├── ActionDoned.java
│ │ │ ├── ActionInvite.java
│ │ │ ├── ActionStart.java
│ │ │ ├── AddExp.java
│ │ │ ├── AppledAction.java
│ │ │ ├── AppledCharmEffect.java
│ │ │ ├── AppledEffect.java
│ │ │ ├── AuthAttempt.java
│ │ │ ├── AuthFailed.java
│ │ │ ├── AuthSuccessful.java
│ │ │ ├── AuthSuccessful2.java
│ │ │ ├── CancelCharmEffect.java
│ │ │ ├── CancelEffect.java
│ │ │ ├── CancelOwerturn.java
│ │ │ ├── CancelTargetHp.java
│ │ │ ├── CharClimb.java
│ │ │ ├── CharDead.java
│ │ │ ├── CharMove.java
│ │ │ ├── CharObjectDelete.java
│ │ │ ├── CharPickUpItem.java
│ │ │ ├── CharSay.java
│ │ │ ├── CharShieldBlock.java
│ │ │ ├── CharState.java
│ │ │ ├── CharTurn.java
│ │ │ ├── CharacterQuitCancelOk.java
│ │ │ ├── CharacterQuitOk.java
│ │ │ ├── CharacterRestartCancelOk.java
│ │ │ ├── CharmSmoke.java
│ │ │ ├── CheckServerResult.java
│ │ │ ├── ConfirmServer.java
│ │ │ ├── ConnectAccepted.java
│ │ │ ├── CreatePlayerResult.java
│ │ │ ├── Damage.java
│ │ │ ├── DeleteCharacter.java
│ │ │ ├── DeleteItem.java
│ │ │ ├── DeleteResourse.java
│ │ │ ├── DeleteShot.java
│ │ │ ├── DeleteWorldObject.java
│ │ │ ├── DeparturePortal.java
│ │ │ ├── DialogPanel.java
│ │ │ ├── DismountPlayer.java
│ │ │ ├── DuelStart.java
│ │ │ ├── Emotion.java
│ │ │ ├── EnchantResult.java
│ │ │ ├── EnchatItemInfo.java
│ │ │ ├── EventMessage.java
│ │ │ ├── FFStructure.java
│ │ │ ├── FriendListInfo.java
│ │ │ ├── FriendListState.java
│ │ │ ├── GetOffPegas.java
│ │ │ ├── GuildBank.java
│ │ │ ├── GuildCheckName.java
│ │ │ ├── GuildIconInfo.java
│ │ │ ├── GuildInfo.java
│ │ │ ├── GuildInputName.java
│ │ │ ├── GuildLoadIcon.java
│ │ │ ├── GuildLogs.java
│ │ │ ├── GuildMembers.java
│ │ │ ├── HotKey.java
│ │ │ ├── HotKeyChanger.java
│ │ │ ├── IncreaseLevel.java
│ │ │ ├── InventoryInfo.java
│ │ │ ├── InventoryItemInfo.java
│ │ │ ├── ItemInfo.java
│ │ │ ├── ItemReuse.java
│ │ │ ├── ItemTemplateInfo.java
│ │ │ ├── LordNum.java
│ │ │ ├── MessageAddedItem.java
│ │ │ ├── MountOff.java
│ │ │ ├── MountOn.java
│ │ │ ├── MoveSkill.java
│ │ │ ├── MultiShop.java
│ │ │ ├── NameColor.java
│ │ │ ├── NotifyCharacter.java
│ │ │ ├── NpcDialogWindow.java
│ │ │ ├── NpcInfo.java
│ │ │ ├── NpcNotice.java
│ │ │ ├── NpcPlayableInfo.java
│ │ │ ├── NpcSpeak.java
│ │ │ ├── NpcState.java
│ │ │ ├── ObjectPosition.java
│ │ │ ├── PartyInfo.java
│ │ │ ├── PartyLeave.java
│ │ │ ├── PartyMemberCoords.java
│ │ │ ├── PartyMemberEffectList.java
│ │ │ ├── PartyMemberInfo.java
│ │ │ ├── PegasFly.java
│ │ │ ├── PegasReplyPacket.java
│ │ │ ├── PegasRouts.java
│ │ │ ├── PlayerBank.java
│ │ │ ├── PlayerBankPanel.java
│ │ │ ├── PlayerBattleStance.java
│ │ │ ├── PlayerCurrentHp.java
│ │ │ ├── PlayerCurrentMp.java
│ │ │ ├── PlayerDeadWindow.java
│ │ │ ├── PlayerDeleteResult.java
│ │ │ ├── PlayerEntered.java
│ │ │ ├── PlayerEquipment.java
│ │ │ ├── PlayerInfo.java
│ │ │ ├── PlayerList.java
│ │ │ ├── PlayerMove.java
│ │ │ ├── PlayerNameResult.java
│ │ │ ├── PlayerPvPOff.java
│ │ │ ├── PlayerPvPOn.java
│ │ │ ├── PlayerSelected.java
│ │ │ ├── PutAnPegas.java
│ │ │ ├── QuestCompleteList.java
│ │ │ ├── QuestCompleted.java
│ │ │ ├── QuestInfo.java
│ │ │ ├── QuestMoveToPanel.java
│ │ │ ├── QuestNpcNotice.java
│ │ │ ├── QuestSplit.java
│ │ │ ├── QuestStarted.java
│ │ │ ├── QuestUpdateCounter.java
│ │ │ ├── QuestVideo.java
│ │ │ ├── Reaction.java
│ │ │ ├── RequestNpcInteractionSuccess.java
│ │ │ ├── RequestSkillStart.java
│ │ │ ├── ResistEffect.java
│ │ │ ├── ResourseCollectProgress.java
│ │ │ ├── ResourseEndCollect.java
│ │ │ ├── ResourseIncreaseLevel.java
│ │ │ ├── ResourseInfo.java
│ │ │ ├── ResourseStartCollect.java
│ │ │ ├── RestartWindow.java
│ │ │ ├── ResultCheckName.java
│ │ │ ├── ServerConstPacket.java
│ │ │ ├── ServerKey.java
│ │ │ ├── ServerPacket.java
│ │ │ ├── Settings.java
│ │ │ ├── SeverDeveloperPacket.java
│ │ │ ├── ShopReplyPacket.java
│ │ │ ├── ShopTradePacket.java
│ │ │ ├── ShowTrade.java
│ │ │ ├── SitOnTransport.java
│ │ │ ├── SkillEnd.java
│ │ │ ├── SkillLeash.java
│ │ │ ├── SkillListInfo.java
│ │ │ ├── SkillLockAttack.java
│ │ │ ├── SkillLockTarget.java
│ │ │ ├── SkillReuse.java
│ │ │ ├── SkillShopList.java
│ │ │ ├── SkillStart.java
│ │ │ ├── SpawnChar.java
│ │ │ ├── StartFastShot.java
│ │ │ ├── StartObjectShot.java
│ │ │ ├── StartSlowShot.java
│ │ │ ├── StateAllowed.java
│ │ │ ├── Structure.java
│ │ │ ├── SummonInfo.java
│ │ │ ├── SystemMessage.java
│ │ │ ├── TargetHp.java
│ │ │ ├── TeleportPoints.java
│ │ │ ├── Test2.java
│ │ │ ├── Test23.java
│ │ │ ├── Test24.java
│ │ │ ├── Test25.java
│ │ │ ├── Test26.java
│ │ │ ├── Test27.java
│ │ │ ├── Test29.java
│ │ │ ├── Test30.java
│ │ │ ├── Test31.java
│ │ │ ├── Test35.java
│ │ │ ├── Test4.java
│ │ │ ├── Test5.java
│ │ │ ├── Test6.java
│ │ │ ├── Test7.java
│ │ │ ├── Tp1.java
│ │ │ ├── TrapInfo.java
│ │ │ ├── UpdateStamina.java
│ │ │ ├── UserInfo.java
│ │ │ ├── WorldObjectInfo.java
│ │ │ └── WorldZone.java
│ ├── parser
│ │ ├── ConditionParser.java
│ │ ├── EffectParser.java
│ │ ├── FuncParser.java
│ │ └── StatFuncParser.java
│ ├── scripts
│ │ ├── commands
│ │ │ ├── AbstractCommand.java
│ │ │ ├── CensoreCommand.java
│ │ │ ├── Command.java
│ │ │ ├── CommandType.java
│ │ │ ├── ConfigCommand.java
│ │ │ ├── DeveloperCommand.java
│ │ │ ├── HealCommand.java
│ │ │ ├── ItemCommand.java
│ │ │ ├── NpcCommands.java
│ │ │ ├── QuestCommand.java
│ │ │ ├── ResourseCommand.java
│ │ │ ├── SkillCommand.java
│ │ │ ├── SummonCommand.java
│ │ │ ├── UserCommand.java
│ │ │ ├── VariablesCommand.java
│ │ │ └── WorldCommand.java
│ │ └── items
│ │ │ ├── AbstractItemExecutor.java
│ │ │ ├── BarbecueItem.java
│ │ │ ├── EventRewardBox.java
│ │ │ ├── ItemExecutor.java
│ │ │ ├── ItemExecutorType.java
│ │ │ └── SkillLearnItem.java
│ ├── tables
│ │ ├── BonfireTable.java
│ │ ├── ConfigAITable.java
│ │ ├── DropTable.java
│ │ ├── ItemTable.java
│ │ ├── MessagePackageTable.java
│ │ ├── MinionTable.java
│ │ ├── NpcAppearanceTable.java
│ │ ├── NpcDialogTable.java
│ │ ├── NpcTable.java
│ │ ├── PlayerTable.java
│ │ ├── ResourseTable.java
│ │ ├── SkillTable.java
│ │ ├── SpawnTable.java
│ │ ├── TerritoryTable.java
│ │ ├── TownTable.java
│ │ └── WorldZoneTable.java
│ ├── taskmanager
│ │ ├── EffectTaskManager.java
│ │ ├── MoveTaskManager.java
│ │ └── RegenTaskManager.java
│ ├── tasks
│ │ ├── AnnounceTask.java
│ │ ├── BattleStanceTask.java
│ │ ├── EmotionTask.java
│ │ ├── MoveNextTask.java
│ │ ├── OwerturnTask.java
│ │ ├── ResourseCollectTask.java
│ │ ├── ShutdownTask.java
│ │ ├── SkillApplyTask.java
│ │ ├── SkillCastTask.java
│ │ ├── SkillMoveTask.java
│ │ ├── SkillUseTask.java
│ │ └── TurnTask.java
│ └── templates
│ │ ├── ArmorTemplate.java
│ │ ├── CharTemplate.java
│ │ ├── CommonTemplate.java
│ │ ├── CrystalTemplate.java
│ │ ├── EffectTemplate.java
│ │ ├── GearedTemplate.java
│ │ ├── ItemTemplate.java
│ │ ├── NpcTemplate.java
│ │ ├── ObjectTemplate.java
│ │ ├── PlayerTemplate.java
│ │ ├── ResourseTemplate.java
│ │ ├── SkillTemplate.java
│ │ └── WeaponTemplate.java
│ ├── remotecontrol
│ ├── Client.java
│ ├── ClientPackets.java
│ ├── HandlerManager.java
│ ├── Packet.java
│ ├── PacketHandler.java
│ ├── PacketType.java
│ ├── ServerControl.java
│ ├── ServerPackets.java
│ └── handlers
│ │ ├── AddPlayerItemHandler.java
│ │ ├── AnnounceApplyHandler.java
│ │ ├── AnnounceLoadHandler.java
│ │ ├── AuthHandler.java
│ │ ├── CancelShutdownHandler.java
│ │ ├── DynamicInfoHandler.java
│ │ ├── GameInfoHandler.java
│ │ ├── GetAccountHandler.java
│ │ ├── LoadChatHandler.java
│ │ ├── PlayerMessageHandler.java
│ │ ├── RemovePlayerItemHandler.java
│ │ ├── SavePlayersHandler.java
│ │ ├── SendAnnounceHandler.java
│ │ ├── ServerConsoleHandler.java
│ │ ├── ServerRestartHandler.java
│ │ ├── ServerStatusHandler.java
│ │ ├── SetAccountHandler.java
│ │ ├── StartGCHandler.java
│ │ ├── StartRestartHandler.java
│ │ ├── StartShutdownHandler.java
│ │ ├── StaticInfoHandler.java
│ │ ├── UpdateAccountHandler.java
│ │ ├── UpdateEquipmentItemsHandler.java
│ │ ├── UpdateInventoryItemsHandler.java
│ │ ├── UpdatePlayerInfoHandler.java
│ │ ├── UpdatePlayerItemHandler.java
│ │ ├── UpdatePlayerMainInfoHandler.java
│ │ ├── UpdatePlayerStatInfoHandler.java
│ │ └── UpdatePlayersHandler.java
│ └── util
│ ├── CRC32.java
│ ├── ExtUtils.java
│ ├── Identified.java
│ ├── LocalObjects.java
│ ├── Location.java
│ ├── StatsUtil.java
│ └── constructors
│ └── ConstructorItem.java
└── launcher
└── Gameserver.launch
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | TJServer
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.runtime.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | line.separator=\r\n
3 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.ltk.core.refactoring.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
3 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.sse.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | task-tags/enabled=true
3 | task-tags/use-project-settings=true
4 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.validation.prefs:
--------------------------------------------------------------------------------
1 | DELEGATES_PREFERENCE=delegateValidatorList
2 | USER_BUILD_PREFERENCE=enabledBuildValidatorList
3 | USER_MANUAL_PREFERENCE=enabledManualValidatorList
4 | USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.400.v201204260100
5 | eclipse.preferences.version=1
6 | override=true
7 | suspend=false
8 | vals/org.eclipse.wst.dtd.core.dtdDTDValidator/global=FF01
9 | vals/org.eclipse.wst.html.core.HTMLValidator/global=FF01
10 | vals/org.eclipse.wst.html.ui.HTMLValidator/global=TF01
11 | vals/org.eclipse.wst.xml.core.xml/groups=0107include05111contentType128org.eclipse.core.runtime.xmlT111contentType134org.eclipse.wst.xml.core.xmlsourceT111contentType134org.eclipse.wst.xml.core.xslsourceT111contentType134org.eclipse.jst.jsp.core.tldsourceT07fileext03xmlF0107exclude08113projectNature134org.eclipse.jst.j2ee.ejb.EJBNature113projectNature130org.eclipse.jst.j2ee.EARNature04file08.projectT0104file110.classpathT0104file110.settings/T0204file03binF0204file05buildF0204file09build.xmlF01
12 | vf.version=3
13 |
--------------------------------------------------------------------------------
/dist/GameServer_loop.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | while :;
3 | do
4 | java -server -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -XX:-UseParallelGC -Xmx2200m -cp ./libs/*:TJServer.jar tera.gameserver.GameServer >/dev/null 2>&1
5 | gspid=$!
6 | echo ${gspid} > gameserver.pid
7 | [ $? -ne 2 ] && break
8 | sleep 10;
9 | done
10 |
--------------------------------------------------------------------------------
/dist/SQL/account_bank.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `account_bank`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `account_bank`;
6 | CREATE TABLE `account_bank` (
7 | `account_name` varchar(45) NOT NULL,
8 | `bank_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
9 | PRIMARY KEY (`bank_id`),
10 | UNIQUE KEY `account_name_UNIQUE` (`account_name`)
11 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
12 |
--------------------------------------------------------------------------------
/dist/SQL/accounts.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `accounts`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `accounts`;
6 | CREATE TABLE `accounts` (
7 | `AccountId` int(11) NOT NULL AUTO_INCREMENT,
8 | `login` varchar(32) NOT NULL DEFAULT '',
9 | `password` varchar(256) DEFAULT '',
10 | `email` varchar(45) DEFAULT 'null@null',
11 | `access_level` smallint(6) NOT NULL DEFAULT '0',
12 | `end_pay` bigint(15) NOT NULL DEFAULT '0',
13 | `end_block` bigint(15) NOT NULL DEFAULT '0',
14 | `last_ip` varchar(15) NOT NULL DEFAULT '',
15 | `allow_ips` varchar(255) NOT NULL DEFAULT '*',
16 | `comments` varchar(255) NOT NULL DEFAULT '',
17 | `LastOnlineUtc` bigint(64) NOT NULL DEFAULT '0',
18 | `EmailVerify` varchar(256) NOT NULL DEFAULT 'true',
19 | `PasswordRecovery` varchar(128) DEFAULT NULL,
20 | `Coins` int(11) NOT NULL DEFAULT '0',
21 | `Ip` varchar(64) NOT NULL DEFAULT '0.0.0.0',
22 | `isFounder` int(1) NOT NULL DEFAULT '0',
23 | `Membership` int(1) NOT NULL DEFAULT '0',
24 | `isGM` int(1) NOT NULL DEFAULT '0',
25 | PRIMARY KEY (`AccountId`),
26 | UNIQUE KEY `login` (`login`),
27 | UNIQUE KEY `email` (`email`),
28 | KEY `access_level` (`access_level`)
29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
30 |
--------------------------------------------------------------------------------
/dist/SQL/boss_spawn.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `boss_spawn`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `boss_spawn`;
6 | CREATE TABLE `boss_spawn` (
7 | `npc_id` int(10) unsigned NOT NULL DEFAULT '0',
8 | `npc_type` int(10) unsigned NOT NULL DEFAULT '0',
9 | `spawn` bigint(20) unsigned NOT NULL DEFAULT '0',
10 | PRIMARY KEY (`npc_id`,`npc_type`)
11 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
12 |
--------------------------------------------------------------------------------
/dist/SQL/character_friends.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_friends`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_friends`;
6 | CREATE TABLE `character_friends` (
7 | `object_id` int(10) unsigned NOT NULL DEFAULT '0',
8 | `friend_id` int(10) unsigned NOT NULL DEFAULT '0',
9 | `friend_note` varchar(45) NOT NULL,
10 | PRIMARY KEY (`object_id`,`friend_id`),
11 | KEY `select` (`object_id`)
12 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
13 |
--------------------------------------------------------------------------------
/dist/SQL/character_hotkey.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_hotkey`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_hotkey`;
6 | CREATE TABLE `character_hotkey` (
7 | `object_id` int(11) NOT NULL DEFAULT '0',
8 | `data` blob,
9 | PRIMARY KEY (`object_id`)
10 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11 |
--------------------------------------------------------------------------------
/dist/SQL/character_inventors.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_inventors`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_inventors`;
6 | CREATE TABLE `character_inventors` (
7 | `owner_id` int(11) unsigned NOT NULL DEFAULT '0',
8 | `id` int(11) unsigned NOT NULL DEFAULT '0',
9 | `level` smallint(4) NOT NULL DEFAULT '0',
10 | PRIMARY KEY (`owner_id`,`id`)
11 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
12 |
--------------------------------------------------------------------------------
/dist/SQL/character_quest_vars.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_quest_vars`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_quest_vars`;
6 | CREATE TABLE `character_quest_vars` (
7 | `object_id` int(10) unsigned NOT NULL,
8 | `quest_id` int(10) unsigned NOT NULL DEFAULT '0',
9 | `name` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '0',
10 | `value` int(10) unsigned NOT NULL DEFAULT '0',
11 | PRIMARY KEY (`object_id`,`quest_id`,`name`),
12 | KEY `key_id` (`quest_id`,`object_id`)
13 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
14 |
--------------------------------------------------------------------------------
/dist/SQL/character_quests.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_quests`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_quests`;
6 | CREATE TABLE `character_quests` (
7 | `object_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
8 | `quest_id` int(10) unsigned NOT NULL DEFAULT '0',
9 | `state` tinyint(3) unsigned NOT NULL DEFAULT '0',
10 | `date` bigint(20) unsigned NOT NULL DEFAULT '0',
11 | `panel_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
12 | PRIMARY KEY (`object_id`,`quest_id`)
13 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
14 |
--------------------------------------------------------------------------------
/dist/SQL/character_save_effects.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_save_effects`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_save_effects`;
6 | CREATE TABLE `character_save_effects` (
7 | `object_id` int(11) NOT NULL DEFAULT '0',
8 | `class_id` tinyint(3) NOT NULL DEFAULT '0',
9 | `skill_id` int(11) NOT NULL DEFAULT '0',
10 | `effect_order` tinyint(3) NOT NULL DEFAULT '0',
11 | `count` int(11) NOT NULL DEFAULT '0',
12 | `duration` int(11) NOT NULL DEFAULT '0',
13 | PRIMARY KEY (`object_id`,`class_id`,`skill_id`,`effect_order`)
14 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
15 |
--------------------------------------------------------------------------------
/dist/SQL/character_settings.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_settings`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_settings`;
6 | CREATE TABLE `character_settings` (
7 | `object_id` int(11) NOT NULL DEFAULT '0',
8 | `data` blob,
9 | PRIMARY KEY (`object_id`)
10 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11 |
--------------------------------------------------------------------------------
/dist/SQL/character_skill_reuses.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_skill_reuses`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_skill_reuses`;
6 | CREATE TABLE `character_skill_reuses` (
7 | `object_id` int(11) NOT NULL DEFAULT '0',
8 | `skill_id` int(11) NOT NULL DEFAULT '0',
9 | `item_id` int(11) NOT NULL DEFAULT '0',
10 | `end_time` bigint(110) NOT NULL DEFAULT '0',
11 | PRIMARY KEY (`object_id`,`skill_id`)
12 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
13 |
--------------------------------------------------------------------------------
/dist/SQL/character_skills.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_skills`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_skills`;
6 | CREATE TABLE `character_skills` (
7 | `object_id` int(11) NOT NULL DEFAULT '0',
8 | `class_id` tinyint(3) NOT NULL DEFAULT '0',
9 | `skill_id` int(11) NOT NULL DEFAULT '0',
10 | PRIMARY KEY (`object_id`,`class_id`,`skill_id`)
11 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
12 |
--------------------------------------------------------------------------------
/dist/SQL/character_territories.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_territories`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_territories`;
6 | CREATE TABLE `character_territories` (
7 | `object_id` int(10) unsigned NOT NULL DEFAULT '0',
8 | `territory_id` int(10) unsigned NOT NULL DEFAULT '0',
9 | UNIQUE KEY `key_territory` (`territory_id`,`object_id`),
10 | KEY `key_player` (`object_id`)
11 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
12 |
--------------------------------------------------------------------------------
/dist/SQL/character_variables.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `character_variables`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `character_variables`;
6 | CREATE TABLE `character_variables` (
7 | `object_id` int(10) unsigned NOT NULL DEFAULT '0',
8 | `var_name` varchar(45) NOT NULL DEFAULT '',
9 | `var_value` varchar(45) NOT NULL DEFAULT '',
10 | PRIMARY KEY (`object_id`,`var_name`)
11 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
12 |
--------------------------------------------------------------------------------
/dist/SQL/guild_ranks.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `guild_ranks`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `guild_ranks`;
6 | CREATE TABLE `guild_ranks` (
7 | `guild_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
8 | `rank_name` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
9 | `order` tinyint(3) unsigned NOT NULL,
10 | `law` tinyint(3) unsigned NOT NULL,
11 | KEY `guild_id` (`guild_id`)
12 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
13 |
--------------------------------------------------------------------------------
/dist/SQL/guilds.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `guilds`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `guilds`;
6 | CREATE TABLE `guilds` (
7 | `id` int(11) NOT NULL DEFAULT '0',
8 | `name` varchar(45) NOT NULL,
9 | `title` varchar(45) NOT NULL,
10 | `level` smallint(6) NOT NULL DEFAULT '0',
11 | `icon` blob,
12 | `icon_name` varchar(45) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
13 | `message` varchar(255) NOT NULL DEFAULT '',
14 | PRIMARY KEY (`id`)
15 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
16 |
--------------------------------------------------------------------------------
/dist/SQL/items.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `items`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `items`;
6 | CREATE TABLE `items` (
7 | `object_id` int(10) unsigned NOT NULL DEFAULT '0',
8 | `owner_id` int(10) unsigned NOT NULL DEFAULT '0',
9 | `owner_name` varchar(45) NOT NULL DEFAULT '',
10 | `item_id` int(10) unsigned NOT NULL DEFAULT '0',
11 | `item_count` bigint(20) unsigned NOT NULL DEFAULT '0',
12 | `masterworked` int(10) NOT NULL DEFAULT '0',
13 | `enchant_level` smallint(5) NOT NULL DEFAULT '0',
14 | `bonus_id` int(10) NOT NULL DEFAULT '0',
15 | `autor` varchar(255) NOT NULL DEFAULT '',
16 | `location` tinyint(3) unsigned NOT NULL DEFAULT '0',
17 | `index` smallint(6) NOT NULL DEFAULT '0',
18 | `has_crystal` tinyint(1) unsigned NOT NULL DEFAULT '0',
19 | PRIMARY KEY (`object_id`),
20 | KEY `key_owner_id` (`owner_id`)
21 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=1;
22 |
--------------------------------------------------------------------------------
/dist/SQL/region_status.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `region_status`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `region_status`;
6 | CREATE TABLE `region_status` (
7 | `region_id` int(10) unsigned NOT NULL DEFAULT '0',
8 | `owner_id` int(10) unsigned NOT NULL DEFAULT '0',
9 | `state` int(10) unsigned NOT NULL DEFAULT '0',
10 | PRIMARY KEY (`region_id`)
11 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
12 |
--------------------------------------------------------------------------------
/dist/SQL/region_war_register.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `region_war_register`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `region_war_register`;
6 | CREATE TABLE `region_war_register` (
7 | `region_id` int(10) unsigned NOT NULL DEFAULT '0',
8 | `guild_id` int(10) unsigned NOT NULL DEFAULT '0',
9 | PRIMARY KEY (`region_id`,`guild_id`)
10 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11 |
--------------------------------------------------------------------------------
/dist/SQL/server_variables.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `server_variables`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `server_variables`;
6 | CREATE TABLE `server_variables` (
7 | `var_name` varchar(45) NOT NULL DEFAULT '',
8 | `var_value` varchar(45) NOT NULL DEFAULT '',
9 | PRIMARY KEY (`var_name`)
10 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11 |
--------------------------------------------------------------------------------
/dist/SQL/skill_learns.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `skill_learns`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `skill_learns`;
6 | CREATE TABLE `skill_learns` (
7 | `classId` tinyint(3) NOT NULL DEFAULT '0',
8 | `skillId` int(11) NOT NULL DEFAULT '0',
9 | `minLevel` smallint(6) NOT NULL DEFAULT '0',
10 | `price` int(11) NOT NULL DEFAULT '0',
11 | `replaceId` int(11) NOT NULL DEFAULT '0',
12 | PRIMARY KEY (`classId`,`skillId`)
13 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
14 |
--------------------------------------------------------------------------------
/dist/SQL/wait_items.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `wait_items`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `wait_items`;
6 | CREATE TABLE `wait_items` (
7 | `order` int(10) unsigned NOT NULL AUTO_INCREMENT,
8 | `emptor` varchar(45) NOT NULL,
9 | `char_name` varchar(45) NOT NULL,
10 | `item_id` int(10) unsigned NOT NULL DEFAULT '0',
11 | `item_count` int(10) unsigned NOT NULL DEFAULT '1',
12 | `enchant_level` int(10) unsigned NOT NULL DEFAULT '0',
13 | PRIMARY KEY (`order`,`char_name`,`item_id`,`item_count`),
14 | KEY `name_key` (`char_name`),
15 | KEY `order_key` (`order`)
16 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
17 |
--------------------------------------------------------------------------------
/dist/SQL/wait_skills.sql:
--------------------------------------------------------------------------------
1 | SET FOREIGN_KEY_CHECKS=0;
2 | -- ----------------------------
3 | -- Table structure for `wait_skills`
4 | -- ----------------------------
5 | DROP TABLE IF EXISTS `wait_skills`;
6 | CREATE TABLE `wait_skills` (
7 | `order` int(10) unsigned NOT NULL AUTO_INCREMENT,
8 | `char_name` varchar(45) NOT NULL,
9 | `skill_id` int(10) unsigned NOT NULL,
10 | `skill_class` int(10) NOT NULL,
11 | PRIMARY KEY (`order`),
12 | KEY `name_key` (`char_name`)
13 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
14 |
--------------------------------------------------------------------------------
/dist/StartGameServer.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ./GameServer_loop.sh &
4 |
--------------------------------------------------------------------------------
/dist/config/AI.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/dist/config/Accounts.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/dist/config/DataBase.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/dist/config/Developer.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/dist/config/DistanceControl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/dist/config/GeoEngine.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/dist/config/Network.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/dist/config/Selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/dist/config/Thread.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/dist/data/announces.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Welcome to the world of Tera!
4 | For a list of commands, enter --help.
5 |
--------------------------------------------------------------------------------
/dist/data/dialogs/dialogs.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/data/dialogs/dialogs.txt
--------------------------------------------------------------------------------
/dist/data/dialogs/event.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/dist/data/dialogs/guilds.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/bastion_control_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/bastion_manager_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/bastion_shops_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/ostgarath_control_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/ostgarath_manager_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/val_aureum_control_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/val_aureum_manager_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/val_palrada_control_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/val_palrada_manager_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/dist/data/events/region_wars/val_palrada_shops_spawn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/dist/data/geodata_1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/data/geodata_1.dat
--------------------------------------------------------------------------------
/dist/data/geodata_2.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/data/geodata_2.dat
--------------------------------------------------------------------------------
/dist/data/geodata_3.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/data/geodata_3.dat
--------------------------------------------------------------------------------
/dist/data/help.txt:
--------------------------------------------------------------------------------
1 | --kill_me - kill the character;
2 | --version - The current version of the server;
3 | --online - the current online server;
4 | --restore_skills - restoration of basic skills with the removal of all current;
5 | --end_pay - end time payment PA;
6 | --time - show the current time on the server;
7 | --restore_characters - restores the input characters on account;
--------------------------------------------------------------------------------
/dist/data/items/commons/event.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/dist/data/items/commons/money.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/dist/data/npcs/north_shara/dragonfall.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/dist/data/npcs/north_shara/habere.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/dist/data/npcs/north_shara/scythera.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/dist/data/skills/guard_skills/start_loc_guard_skills.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/dist/data/skills/item_skills/transforms.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/dist/data/spawns/event.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
13 |
14 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/dist/data/spawns/north_shara/dragonfall.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/dist/data/spawns/north_shara/habere.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/dist/data/spawns/north_shara/scythera.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/dist/data/spawns/raid_boss.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/dist/data/spawns/south_arun/LoT_res.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/dist/data/spawns/south_arun/fyrmount_quest_res.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/dist/data/summons/thrall_of_wrath.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/dist/libs/bonecp-0.7.1.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/libs/bonecp-0.7.1.RELEASE.jar
--------------------------------------------------------------------------------
/dist/libs/gnu-crypto-2.1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/libs/gnu-crypto-2.1.0.jar
--------------------------------------------------------------------------------
/dist/libs/google-collect-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/libs/google-collect-1.0.jar
--------------------------------------------------------------------------------
/dist/libs/mysql-connector-java-5.1.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/libs/mysql-connector-java-5.1.17.jar
--------------------------------------------------------------------------------
/dist/libs/slf4j-api-1.6.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MobiusDevelopment/TJServer/9f2f13d6add6b30b7c7bfe59c7bedda016355b88/dist/libs/slf4j-api-1.6.6.jar
--------------------------------------------------------------------------------
/dist/startGameServer.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | title TJServer Console
3 |
4 | :start
5 | echo Starting TJServer.
6 | echo.
7 |
8 | java -server -Dfile.encoding=UTF-8 -XX:+AggressiveOpts -Xnoclassgc -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:SurvivorRatio=8 -Xmx4g -Xms2g -Xmn1g -jar libs\TJServer.jar
9 |
10 | if ERRORLEVEL 2 goto restart
11 | if ERRORLEVEL 1 goto error
12 | goto end
13 |
14 | :restart
15 | echo.
16 | echo Admin Restarted Game Server.
17 | echo.
18 | goto start
19 |
20 | :error
21 | echo.
22 | echo Game Server Terminated Abnormally!
23 | echo.
24 |
25 | :end
26 | echo.
27 | echo Game Server Terminated.
28 | echo.
29 | pause
--------------------------------------------------------------------------------
/java/rlib/DeadLockListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib;
18 |
19 | import java.lang.management.ThreadInfo;
20 |
21 | public interface DeadLockListener
22 | {
23 | void onDetected(ThreadInfo var1);
24 | }
25 |
--------------------------------------------------------------------------------
/java/rlib/concurrent/AsynReadSynWriteLock.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.concurrent;
18 |
19 | public interface AsynReadSynWriteLock
20 | {
21 | void readLock();
22 |
23 | void readUnlock();
24 |
25 | void writeLock();
26 |
27 | void writeUnlock();
28 | }
29 |
--------------------------------------------------------------------------------
/java/rlib/concurrent/FinalLock.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.concurrent;
18 |
19 | import java.util.concurrent.locks.ReentrantLock;
20 |
21 | public final class FinalLock extends ReentrantLock
22 | {
23 | private static final long serialVersionUID = 411737919279934135L;
24 | }
25 |
--------------------------------------------------------------------------------
/java/rlib/concurrent/FinalReadWriteLock.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.concurrent;
18 |
19 | import java.util.concurrent.locks.ReentrantReadWriteLock;
20 |
21 | public final class FinalReadWriteLock extends ReentrantReadWriteLock
22 | {
23 | private static final long serialVersionUID = 797324701725211617L;
24 | }
25 |
--------------------------------------------------------------------------------
/java/rlib/data/DocumentXML.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.data;
18 |
19 | public interface DocumentXML
20 | {
21 | C parse();
22 | }
23 |
--------------------------------------------------------------------------------
/java/rlib/database/CleaningQuery.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.database;
18 |
19 | public final class CleaningQuery
20 | {
21 | private final String name;
22 | private final String query;
23 |
24 | public CleaningQuery(String name, String query)
25 | {
26 | this.name = name;
27 | this.query = query;
28 | }
29 |
30 | public String getName()
31 | {
32 | return name;
33 | }
34 |
35 | public String getQuery()
36 | {
37 | return query;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/java/rlib/database/ConnectFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | * Could not load the following classes:
18 | * com.jolbox.bonecp.BoneCPConfig
19 | */
20 | package rlib.database;
21 |
22 | import java.sql.Connection;
23 | import java.sql.SQLException;
24 |
25 | import com.jolbox.bonecp.BoneCPConfig;
26 |
27 | public abstract class ConnectFactory
28 | {
29 | public static ConnectFactory newBoneCPConnectFactory(BoneCPConfig config, String driver)
30 | {
31 | BoneCPConnectFactory connects = new BoneCPConnectFactory();
32 | connects.init(config, driver);
33 | return connects;
34 | }
35 |
36 | public abstract Connection getConnection() throws SQLException;
37 | }
38 |
--------------------------------------------------------------------------------
/java/rlib/gamemodel/GameObject.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.gamemodel;
18 |
19 | public interface GameObject extends Comparable
20 | {
21 | int getHeading();
22 |
23 | int getObjectId();
24 |
25 | float getX();
26 |
27 | float getY();
28 |
29 | float getZ();
30 |
31 | boolean isVisible();
32 |
33 | void spawnMe(float var1, float var2, float var3, int var4);
34 | }
35 |
--------------------------------------------------------------------------------
/java/rlib/geoengine/GeoConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.geoengine;
18 |
19 | public interface GeoConfig
20 | {
21 | int getOffsetX();
22 |
23 | int getOffsetY();
24 |
25 | int getQuardHeight();
26 |
27 | int getQuardSize();
28 |
29 | int getSplit();
30 | }
31 |
--------------------------------------------------------------------------------
/java/rlib/geoengine/GeoMap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.geoengine;
18 |
19 | import java.io.File;
20 |
21 | import rlib.util.array.Array;
22 |
23 | public interface GeoMap
24 | {
25 | void addQuard(GeoQuard var1);
26 |
27 | void addQuard(int var1, int var2, float var3);
28 |
29 | void exportTo(File var1);
30 |
31 | Array getAllQuards(Array var1);
32 |
33 | GeoQuard getGeoQuard(float var1, float var2, float var3);
34 |
35 | float getHeight(float var1, float var2, float var3);
36 |
37 | GeoMap importTo(File var1);
38 |
39 | int size();
40 | }
41 |
--------------------------------------------------------------------------------
/java/rlib/geom/GamePoint.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.geom;
18 |
19 | public interface GamePoint
20 | {
21 | int getHeading();
22 |
23 | float getX();
24 |
25 | float getY();
26 |
27 | float getZ();
28 |
29 | GamePoint setHeading(int var1);
30 |
31 | GamePoint setX(float var1);
32 |
33 | GamePoint setXYZ(float var1, float var2, float var3);
34 |
35 | GamePoint setXYZH(float var1, float var2, float var3, int var4);
36 |
37 | GamePoint setY(float var1);
38 |
39 | GamePoint setZ(float var1);
40 | }
41 |
--------------------------------------------------------------------------------
/java/rlib/geom/Ray.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.geom;
18 |
19 | public class Ray
20 | {
21 | protected Vector start;
22 | protected Vector direction;
23 |
24 | public final Vector getDirection()
25 | {
26 | return direction;
27 | }
28 |
29 | public final Vector getStart()
30 | {
31 | return start;
32 | }
33 |
34 | public final void setDirection(Vector direction)
35 | {
36 | this.direction = direction;
37 | }
38 |
39 | public final void setStart(Vector start)
40 | {
41 | this.start = start;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/java/rlib/geom/VectorBuffer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.geom;
18 |
19 | public final class VectorBuffer
20 | {
21 | private final Vector[] vectors;
22 | private int index;
23 |
24 | public static VectorBuffer newInstance(int size)
25 | {
26 | return new VectorBuffer(size);
27 | }
28 |
29 | private VectorBuffer(int size)
30 | {
31 | vectors = new Vector[size];
32 | int i = 0;
33 | int length = vectors.length;
34 | while (i < length)
35 | {
36 | vectors[i] = Vector.newInstance();
37 | ++i;
38 | }
39 | }
40 |
41 | public Vector getNextVector()
42 | {
43 | if (index == vectors.length)
44 | {
45 | index = 0;
46 | }
47 | return vectors[index++];
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/java/rlib/geom/VectorType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.geom;
18 |
19 | public enum VectorType
20 | {
21 | LEFT,
22 | UP,
23 | DIRECTION;
24 | }
25 |
--------------------------------------------------------------------------------
/java/rlib/geom/bounding/BoundingType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.geom.bounding;
18 |
19 | public enum BoundingType
20 | {
21 | AXIS_ALIGNED_BOX,
22 | SPHERE,
23 | EMPTY;
24 | }
25 |
--------------------------------------------------------------------------------
/java/rlib/idfactory/IdGenerator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.idfactory;
18 |
19 | public interface IdGenerator
20 | {
21 | int getNextId();
22 |
23 | void prepare();
24 |
25 | void releaseId(int var1);
26 |
27 | int usedIds();
28 | }
29 |
--------------------------------------------------------------------------------
/java/rlib/idfactory/IdGenerators.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.idfactory;
18 |
19 | import java.util.concurrent.ScheduledExecutorService;
20 |
21 | import rlib.database.ConnectFactory;
22 |
23 | public class IdGenerators
24 | {
25 | public static IdGenerator newBitSetIdGeneratoe(ConnectFactory connects, ScheduledExecutorService executor, String[][] tables)
26 | {
27 | return new BitSetIdGenerator(connects, executor, tables);
28 | }
29 |
30 | public static IdGenerator newSimpleIdGenerator(int start, int end)
31 | {
32 | return new SimpleIdGenerator(start, end);
33 | }
34 |
35 | private IdGenerators()
36 | {
37 | throw new IllegalArgumentException();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/java/rlib/logging/GameLogger.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.logging;
18 |
19 | public interface GameLogger
20 | {
21 | void finish();
22 |
23 | void write(String var1);
24 |
25 | void writeCache();
26 | }
27 |
--------------------------------------------------------------------------------
/java/rlib/logging/LoggerListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.logging;
18 |
19 | public interface LoggerListener
20 | {
21 | void println(String var1);
22 | }
23 |
--------------------------------------------------------------------------------
/java/rlib/network/AsynConnection.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network;
18 |
19 | public interface AsynConnection
20 | {
21 | void close();
22 |
23 | long getLastActive();
24 |
25 | boolean isClosed();
26 |
27 | void sendPacket(S var1);
28 |
29 | void setLastActive(long var1);
30 |
31 | void startRead();
32 | }
33 |
--------------------------------------------------------------------------------
/java/rlib/network/AsynchronousNetwork.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | public interface AsynchronousNetwork
22 | {
23 | NetworkConfig getConfig();
24 |
25 | ByteBuffer getReadByteBuffer();
26 |
27 | ByteBuffer getWriteByteBuffer();
28 |
29 | void putReadByteBuffer(ByteBuffer var1);
30 |
31 | void putWriteByteBuffer(ByteBuffer var1);
32 | }
33 |
--------------------------------------------------------------------------------
/java/rlib/network/GameCrypt.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network;
18 |
19 | public interface GameCrypt
20 | {
21 | void decrypt(byte[] var1, int var2, int var3);
22 |
23 | void encrypt(byte[] var1, int var2, int var3);
24 | }
25 |
--------------------------------------------------------------------------------
/java/rlib/network/NetworkConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network;
18 |
19 | public interface NetworkConfig
20 | {
21 | String getGroupName();
22 |
23 | int getGroupSize();
24 |
25 | int getReadBufferSize();
26 |
27 | Class extends Thread> getThreadClass();
28 |
29 | int getThreadPriority();
30 |
31 | int getWriteBufferSize();
32 |
33 | boolean isVesibleReadException();
34 |
35 | boolean isVesibleWriteException();
36 | }
37 |
--------------------------------------------------------------------------------
/java/rlib/network/client/ClientNetwork.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network.client;
18 |
19 | import java.net.InetSocketAddress;
20 |
21 | import rlib.network.AsynchronousNetwork;
22 |
23 | public interface ClientNetwork extends AsynchronousNetwork
24 | {
25 | void connect(InetSocketAddress var1);
26 | }
27 |
--------------------------------------------------------------------------------
/java/rlib/network/client/server/ConnectState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network.client.server;
18 |
19 | public enum ConnectState
20 | {
21 | WAITING_PACKETS,
22 | WAITING_WRITES;
23 | }
24 |
--------------------------------------------------------------------------------
/java/rlib/network/client/server/ServerConnection.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network.client.server;
18 |
19 | import rlib.network.AsynConnection;
20 | import rlib.network.packets.ReadeablePacket;
21 | import rlib.network.packets.SendablePacket;
22 |
23 | public interface ServerConnection, R extends ReadeablePacket, S extends SendablePacket> extends AsynConnection
24 | {
25 | T getServer();
26 |
27 | void setServer(T var1);
28 | }
29 |
--------------------------------------------------------------------------------
/java/rlib/network/packets/Packet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network.packets;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | public interface Packet
22 | {
23 | ByteBuffer getBuffer();
24 |
25 | String getName();
26 |
27 | C getOwner();
28 |
29 | void setBuffer(ByteBuffer var1);
30 |
31 | void setOwner(C var1);
32 | }
33 |
--------------------------------------------------------------------------------
/java/rlib/network/packets/ReadeablePacket.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network.packets;
18 |
19 | public interface ReadeablePacket extends Packet, Runnable
20 | {
21 | int getAvaliableBytes();
22 |
23 | boolean isSynchronized();
24 |
25 | ReadeablePacket newInstance();
26 |
27 | boolean read();
28 | }
29 |
--------------------------------------------------------------------------------
/java/rlib/network/packets/SendablePacket.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network.packets;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | public interface SendablePacket extends Packet
22 | {
23 | void complete();
24 |
25 | void decreaseSends();
26 |
27 | void decreaseSends(int var1);
28 |
29 | void increaseSends();
30 |
31 | void increaseSends(int var1);
32 |
33 | boolean isSynchronized();
34 |
35 | void write(ByteBuffer var1);
36 |
37 | void writeHeader(ByteBuffer var1, int var2);
38 |
39 | void writeLocal();
40 |
41 | void writePosition(ByteBuffer var1);
42 | }
43 |
--------------------------------------------------------------------------------
/java/rlib/network/server/ServerNetwork.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network.server;
18 |
19 | import java.io.IOException;
20 | import java.net.SocketAddress;
21 | import java.nio.channels.AsynchronousSocketChannel;
22 | import java.nio.channels.CompletionHandler;
23 |
24 | import rlib.network.AsynchronousNetwork;
25 |
26 | public interface ServerNetwork extends AsynchronousNetwork
27 | {
28 | void accept(A var1, CompletionHandler var2);
29 |
30 | void bind(SocketAddress var1) throws IOException;
31 | }
32 |
--------------------------------------------------------------------------------
/java/rlib/network/server/client/ClientConnection.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.network.server.client;
18 |
19 | import rlib.network.AsynConnection;
20 | import rlib.network.packets.ReadeablePacket;
21 | import rlib.network.packets.SendablePacket;
22 |
23 | @SuppressWarnings("rawtypes")
24 | public interface ClientConnection, S extends SendablePacket> extends AsynConnection
25 | {
26 | T getClient();
27 |
28 | void setClient(T var1);
29 | }
30 |
--------------------------------------------------------------------------------
/java/rlib/util/Loadable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util;
18 |
19 | public interface Loadable
20 | {
21 | void load();
22 |
23 | void reload();
24 |
25 | void unload();
26 | }
27 |
--------------------------------------------------------------------------------
/java/rlib/util/Nameable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util;
18 |
19 | public interface Nameable
20 | {
21 | String getName();
22 | }
23 |
--------------------------------------------------------------------------------
/java/rlib/util/Reloadable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util;
18 |
19 | public interface Reloadable
20 | {
21 | void reload(E var1);
22 | }
23 |
--------------------------------------------------------------------------------
/java/rlib/util/SafeTask.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util;
18 |
19 | import rlib.logging.Loggers;
20 |
21 | public abstract class SafeTask implements Runnable
22 | {
23 | @Override
24 | public void run()
25 | {
26 | try
27 | {
28 | runImpl();
29 | }
30 | catch (Exception e)
31 | {
32 | Loggers.warning(this, e);
33 | }
34 | }
35 |
36 | protected abstract void runImpl();
37 | }
38 |
--------------------------------------------------------------------------------
/java/rlib/util/Synchronized.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util;
18 |
19 | public interface Synchronized
20 | {
21 | void lock();
22 |
23 | void unlock();
24 | }
25 |
--------------------------------------------------------------------------------
/java/rlib/util/Synchronizer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util;
18 |
19 | import java.util.concurrent.locks.Lock;
20 |
21 | import rlib.concurrent.Locks;
22 |
23 | public final class Synchronizer implements Synchronized
24 | {
25 | private final Lock lock = Locks.newLock();
26 | public volatile boolean locked;
27 |
28 | public final boolean isLocked()
29 | {
30 | return locked;
31 | }
32 |
33 | @Override
34 | public void lock()
35 | {
36 | lock.lock();
37 | }
38 |
39 | public final void setLocked(boolean locked)
40 | {
41 | this.locked = locked;
42 | }
43 |
44 | @Override
45 | public void unlock()
46 | {
47 | lock.unlock();
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/java/rlib/util/array/ArrayComparator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.array;
18 |
19 | import java.util.Comparator;
20 |
21 | public abstract class ArrayComparator implements Comparator
22 | {
23 | @Override
24 | public int compare(T first, T second)
25 | {
26 | if (first == null)
27 | {
28 | return 1;
29 | }
30 | if (second == null)
31 | {
32 | return -1;
33 | }
34 | return this.compareImpl(first, second);
35 | }
36 |
37 | protected abstract int compareImpl(T var1, T var2);
38 | }
39 |
--------------------------------------------------------------------------------
/java/rlib/util/array/ArrayIterator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.array;
18 |
19 | import java.util.Iterator;
20 |
21 | public interface ArrayIterator extends Iterator
22 | {
23 | void fastRemove();
24 |
25 | int index();
26 |
27 | void slowRemove();
28 | }
29 |
--------------------------------------------------------------------------------
/java/rlib/util/array/ConcurrentArraySet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.array;
18 |
19 | public class ConcurrentArraySet extends ConcurrentArray
20 | {
21 | private static final long serialVersionUID = 1;
22 |
23 | public ConcurrentArraySet(Class type)
24 | {
25 | super(type);
26 | }
27 |
28 | public ConcurrentArraySet(Class type, int size)
29 | {
30 | super(type, size);
31 | }
32 |
33 | @Override
34 | public ConcurrentArray add(E element)
35 | {
36 | if (contains(element))
37 | {
38 | return this;
39 | }
40 | return super.add(element);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/java/rlib/util/array/FastArraySet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.array;
18 |
19 | public class FastArraySet extends FastArray
20 | {
21 | private static final long serialVersionUID = 1;
22 |
23 | public FastArraySet(Class type)
24 | {
25 | super(type);
26 | }
27 |
28 | public FastArraySet(Class type, int size)
29 | {
30 | super(type, size);
31 | }
32 |
33 | @Override
34 | public FastArray add(E element)
35 | {
36 | if (contains(element))
37 | {
38 | return this;
39 | }
40 | return super.add(element);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/java/rlib/util/array/FuncElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.array;
18 |
19 | public interface FuncElement
20 | {
21 | void apply(E var1);
22 | }
23 |
--------------------------------------------------------------------------------
/java/rlib/util/array/Search.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.array;
18 |
19 | public interface Search
20 | {
21 | boolean compare(E var1, E var2);
22 | }
23 |
--------------------------------------------------------------------------------
/java/rlib/util/pools/Foldable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.pools;
18 |
19 | public interface Foldable
20 | {
21 | void finalyze();
22 |
23 | void reinit();
24 | }
25 |
--------------------------------------------------------------------------------
/java/rlib/util/pools/FoldablePool.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.pools;
18 |
19 | public interface FoldablePool
20 | {
21 | boolean isEmpty();
22 |
23 | void put(E var1);
24 |
25 | E take();
26 | }
27 |
--------------------------------------------------------------------------------
/java/rlib/util/random/Random.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.random;
18 |
19 | public interface Random
20 | {
21 | void byteArray(byte[] var1, int var2, int var3);
22 |
23 | boolean chance(float var1);
24 |
25 | boolean chance(int var1);
26 |
27 | float nextFloat();
28 |
29 | int nextInt();
30 |
31 | int nextInt(int var1);
32 |
33 | int nextInt(int var1, int var2);
34 |
35 | long nextLong(long var1, long var3);
36 | }
37 |
--------------------------------------------------------------------------------
/java/rlib/util/random/Randoms.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.random;
18 |
19 | import rlib.logging.Loggers;
20 |
21 | public final class Randoms
22 | {
23 | public static Random newFastRandom()
24 | {
25 | return new FastRandom();
26 | }
27 |
28 | public static Random newRealRandom()
29 | {
30 | return new RealRandom();
31 | }
32 |
33 | private Randoms()
34 | {
35 | try
36 | {
37 | throw new Exception();
38 | }
39 | catch (Exception e)
40 | {
41 | Loggers.warning(this, e);
42 | return;
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/java/rlib/util/table/FuncKeyValue.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.table;
18 |
19 | public interface FuncKeyValue
20 | {
21 | void apply(K var1, V var2);
22 | }
23 |
--------------------------------------------------------------------------------
/java/rlib/util/table/FuncValue.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.table;
18 |
19 | public interface FuncValue
20 | {
21 | void apply(V var1);
22 | }
23 |
--------------------------------------------------------------------------------
/java/rlib/util/table/IntKey.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.table;
18 |
19 | public final class IntKey
20 | {
21 | private IntKey()
22 | {
23 | throw new IllegalArgumentException();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/java/rlib/util/table/LongKey.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.table;
18 |
19 | public final class LongKey
20 | {
21 | private LongKey()
22 | {
23 | throw new IllegalArgumentException();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/java/rlib/util/table/TableType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.table;
18 |
19 | public enum TableType
20 | {
21 | DEPRECATED,
22 | OBJECT,
23 | INTEGER,
24 | LONG;
25 | }
26 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/ByteWrap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | final class ByteWrap extends AbstractWrap
20 | {
21 | private byte value;
22 |
23 | ByteWrap()
24 | {
25 | }
26 |
27 | @Override
28 | public byte getByte()
29 | {
30 | return value;
31 | }
32 |
33 | @Override
34 | public WrapType getWrapType()
35 | {
36 | return WrapType.BYTE;
37 | }
38 |
39 | @Override
40 | public void setByte(byte value)
41 | {
42 | this.value = value;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/CharWrap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | final class CharWrap extends AbstractWrap
20 | {
21 | private char value;
22 |
23 | CharWrap()
24 | {
25 | }
26 |
27 | @Override
28 | public char getChar()
29 | {
30 | return value;
31 | }
32 |
33 | @Override
34 | public WrapType getWrapType()
35 | {
36 | return WrapType.CHAR;
37 | }
38 |
39 | @Override
40 | public void setChar(char value)
41 | {
42 | this.value = value;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/DoubleWrap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | final class DoubleWrap extends AbstractWrap
20 | {
21 | private double value;
22 |
23 | DoubleWrap()
24 | {
25 | }
26 |
27 | @Override
28 | public double getDouble()
29 | {
30 | return value;
31 | }
32 |
33 | @Override
34 | public WrapType getWrapType()
35 | {
36 | return WrapType.DOUBLE;
37 | }
38 |
39 | @Override
40 | public void setDouble(double value)
41 | {
42 | this.value = value;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/FloatWrap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | final class FloatWrap extends AbstractWrap
20 | {
21 | private float value;
22 |
23 | FloatWrap()
24 | {
25 | }
26 |
27 | @Override
28 | public float getFloat()
29 | {
30 | return value;
31 | }
32 |
33 | @Override
34 | public WrapType getWrapType()
35 | {
36 | return WrapType.FLOAT;
37 | }
38 |
39 | @Override
40 | public void setFloat(float value)
41 | {
42 | this.value = value;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/IntegerWrap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | final class IntegerWrap extends AbstractWrap
20 | {
21 | private int value;
22 |
23 | IntegerWrap()
24 | {
25 | }
26 |
27 | @Override
28 | public int getInt()
29 | {
30 | return value;
31 | }
32 |
33 | @Override
34 | public WrapType getWrapType()
35 | {
36 | return WrapType.INTEGER;
37 | }
38 |
39 | @Override
40 | public void setInt(int value)
41 | {
42 | this.value = value;
43 | }
44 |
45 | @Override
46 | public String toString()
47 | {
48 | return String.valueOf(value);
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/LongWrap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | final class LongWrap extends AbstractWrap
20 | {
21 | private long value;
22 |
23 | LongWrap()
24 | {
25 | }
26 |
27 | @Override
28 | public long getLong()
29 | {
30 | return value;
31 | }
32 |
33 | @Override
34 | public WrapType getWrapType()
35 | {
36 | return WrapType.LONG;
37 | }
38 |
39 | @Override
40 | public void setLong(long value)
41 | {
42 | this.value = value;
43 | }
44 |
45 | @Override
46 | public String toString()
47 | {
48 | return String.valueOf(value);
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/ObjectWrap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | final class ObjectWrap extends AbstractWrap
20 | {
21 | private Object object;
22 |
23 | ObjectWrap()
24 | {
25 | }
26 |
27 | @Override
28 | public Object getObject()
29 | {
30 | return object;
31 | }
32 |
33 | @Override
34 | public WrapType getWrapType()
35 | {
36 | return WrapType.OBJECT;
37 | }
38 |
39 | @Override
40 | public void setObject(Object object)
41 | {
42 | this.object = object;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/ShortWrap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | final class ShortWrap extends AbstractWrap
20 | {
21 | private short value;
22 |
23 | ShortWrap()
24 | {
25 | }
26 |
27 | @Override
28 | public short getShort()
29 | {
30 | return value;
31 | }
32 |
33 | @Override
34 | public WrapType getWrapType()
35 | {
36 | return WrapType.SHORT;
37 | }
38 |
39 | @Override
40 | public void setShort(short value)
41 | {
42 | this.value = value;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/java/rlib/util/wraps/WrapType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package rlib.util.wraps;
18 |
19 | import rlib.util.pools.FoldablePool;
20 | import rlib.util.pools.Pools;
21 |
22 | public enum WrapType
23 | {
24 | FLOAT,
25 | DOUBLE,
26 | CHAR,
27 | OBJECT,
28 | BYTE,
29 | SHORT,
30 | LONG,
31 | INTEGER;
32 |
33 | private final FoldablePool pool = Pools.newConcurrentFoldablePool(Wrap.class);
34 |
35 | protected void put(Wrap wrap)
36 | {
37 | pool.put(wrap);
38 | }
39 |
40 | protected Wrap take()
41 | {
42 | return pool.take();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/java/tera/gameserver/events/EventConstant.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.events;
18 |
19 | import tera.gameserver.tables.NpcTable;
20 | import tera.gameserver.templates.NpcTemplate;
21 |
22 | /**
23 | * @author Ronn
24 | */
25 | public class EventConstant
26 | {
27 | public static final String VAR_NANE_HERO_POINT = "event_honor_point";
28 | public static final NpcTemplate MYSTEL;
29 | static
30 | {
31 | final NpcTable npcTable = NpcTable.getInstance();
32 | MYSTEL = npcTable.getTemplate(10000, 402);
33 | }
34 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/events/EventState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.events;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum EventState
23 | {
24 | REGISTER,
25 | PREPARE_START,
26 | PREPARE_BATLE,
27 | RUNNING,
28 | PREPARE_END,
29 | FINISHING,
30 | FINISHED,
31 | }
32 |
--------------------------------------------------------------------------------
/java/tera/gameserver/events/NpcInteractEvent.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.events;
18 |
19 | import tera.gameserver.model.npc.Npc;
20 | import tera.gameserver.model.npc.interaction.Link;
21 | import tera.gameserver.model.playable.Player;
22 |
23 | import rlib.util.array.Array;
24 |
25 | /**
26 | * @author Ronn
27 | * @created 11.04.2012
28 | */
29 | public interface NpcInteractEvent
30 | {
31 | /**
32 | * Method addLinks.
33 | * @param links Array
34 | * @param npc Npc
35 | * @param player Player
36 | */
37 | void addLinks(Array links, Npc npc, Player player);
38 | }
39 |
--------------------------------------------------------------------------------
/java/tera/gameserver/events/Registered.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.events;
18 |
19 | import tera.gameserver.model.playable.Player;
20 |
21 | /**
22 | * @author Ronn
23 | * @created 11.04.2012
24 | */
25 | public interface Registered
26 | {
27 | /**
28 | * Method registerPlayer.
29 | * @param player Player
30 | * @return boolean
31 | */
32 | boolean registerPlayer(Player player);
33 |
34 | /**
35 | * Method unregisterPlayer.
36 | * @param player Player
37 | * @return boolean
38 | */
39 | boolean unregisterPlayer(Player player);
40 | }
41 |
--------------------------------------------------------------------------------
/java/tera/gameserver/events/global/regionwars/RegionState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.events.global.regionwars;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum RegionState
23 | {
24 | WAIT_WAR,
25 | PREPARE_START_WAR,
26 | WAR,
27 | PREPARE_END_WAR;
28 |
29 | /**
30 | * Method valueOf.
31 | * @param index int
32 | * @return RegionState
33 | */
34 | public static RegionState valueOf(int index)
35 | {
36 | return values()[index];
37 | }
38 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/Bonfire.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public interface Bonfire
23 | {
24 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/GuildLog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public class GuildLog
23 | {
24 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/ReactionType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum ReactionType
23 | {
24 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/actions/classes/PlayerAction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.actions.classes;
18 |
19 | import tera.gameserver.model.playable.Player;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public abstract class PlayerAction extends AbstractAction
25 | {
26 | @Override
27 | protected final synchronized void clear()
28 | {
29 | final Player target = getTarget();
30 |
31 | if (target != null)
32 | {
33 | target.setLastAction(null);
34 | }
35 |
36 | super.clear();
37 | }
38 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/ai/CharacterAI.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.ai;
18 |
19 | import tera.gameserver.model.Character;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public interface CharacterAI extends AI
25 | {
26 | /**
27 | * Method isGlobalAI.
28 | * @return boolean
29 | */
30 | boolean isGlobalAI();
31 |
32 | void startAITask();
33 |
34 | void stopAITask();
35 |
36 | void clearTaskList();
37 |
38 | void abortAttack();
39 |
40 | /**
41 | * Method startAttack.
42 | * @param target Character
43 | */
44 | void startAttack(Character target);
45 | }
46 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/ai/npc/TaskType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.ai.npc;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum TaskType
23 | {
24 | MOVE_UPDATE_HEADING,
25 | MOVE_NOT_UPDATE_HEADING,
26 | MOVE_ON_CAST,
27 | CAST,
28 | CAST_ON_HEADING,
29 | NOTICE,
30 | NOTICE_FAST,
31 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/ai/npc/classes/DefaultNpcAI.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.ai.npc.classes;
18 |
19 | import tera.gameserver.model.ai.npc.ConfigAI;
20 | import tera.gameserver.model.npc.Npc;
21 |
22 | /**
23 | * @author Ronn
24 | */
25 | public class DefaultNpcAI extends AbstractNpcAI
26 | {
27 | /**
28 | * Constructor for DefaultNpcAI.
29 | * @param actor Npc
30 | * @param config ConfigAI
31 | */
32 | public DefaultNpcAI(Npc actor, ConfigAI config)
33 | {
34 | super(actor, config);
35 | }
36 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/ai/npc/classes/DefaultSummonAI.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.ai.npc.classes;
18 |
19 | import tera.gameserver.model.ai.npc.ConfigAI;
20 | import tera.gameserver.model.npc.summons.Summon;
21 |
22 | /**
23 | * @author Ronn
24 | */
25 | public class DefaultSummonAI extends AbstractSummonAI
26 | {
27 | /**
28 | * Constructor for DefaultSummonAI.
29 | * @param actor Summon
30 | * @param config ConfigAI
31 | */
32 | public DefaultSummonAI(Summon actor, ConfigAI config)
33 | {
34 | super(actor, config);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/ai/npc/taskfactory/AbstractTaskFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.ai.npc.taskfactory;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | import rlib.logging.Logger;
22 | import rlib.logging.Loggers;
23 |
24 | /**
25 | * @author Ronn
26 | */
27 | public abstract class AbstractTaskFactory implements TaskFactory
28 | {
29 | protected static final Logger log = Loggers.getLogger(TaskFactory.class);
30 |
31 | /**
32 | * Constructor for AbstractTaskFactory.
33 | * @param node Node
34 | */
35 | public AbstractTaskFactory(Node node)
36 | {
37 | }
38 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/ai/npc/taskfactory/EventRangerBattleTaskFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.ai.npc.taskfactory;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class EventRangerBattleTaskFactory extends DefaultBattleTaskFactory
25 | {
26 | /**
27 | * Constructor for EventRangerBattleTaskFactory.
28 | * @param node Node
29 | */
30 | public EventRangerBattleTaskFactory(Node node)
31 | {
32 | super(node);
33 | }
34 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/ai/npc/taskfactory/EventSlayerBattleTaskFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.ai.npc.taskfactory;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class EventSlayerBattleTaskFactory extends DefaultBattleTaskFactory
25 | {
26 | /**
27 | * Constructor for EventSlayerBattleTaskFactory.
28 | * @param node Node
29 | */
30 | public EventSlayerBattleTaskFactory(Node node)
31 | {
32 | super(node);
33 | }
34 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/base/Sex.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.base;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum Sex
23 | {
24 | MALE,
25 | FEMALE;
26 |
27 | /**
28 | * Method valueOf.
29 | * @param index int
30 | * @return Sex
31 | */
32 | public static Sex valueOf(int index)
33 | {
34 | return values()[index];
35 | }
36 |
37 | public static final Sex[] VALUES = values();
38 |
39 | public static final int SIZE = VALUES.length;
40 | }
41 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/equipment/SlotType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.equipment;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum SlotType
23 | {
24 |
25 | NONE,
26 |
27 | SLOT_HAT,
28 |
29 | SLOT_MASK,
30 |
31 | SLOT_SHIRT,
32 |
33 | SLOT_GLOVES,
34 |
35 | SLOT_BOOTS,
36 |
37 | SLOT_ARMOR,
38 |
39 | SLOT_WEAPON,
40 |
41 | SLOT_EARRING,
42 |
43 | SLOT_RING,
44 |
45 | SLOT_NECKLACE,
46 |
47 | SLOT_REMODELABLE_WEAPON,
48 |
49 | SLOT_ARMOR_REMODEL;
50 |
51 | public static final int SIZE = values().length;
52 | }
53 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/items/ItemLocation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.items;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum ItemLocation
23 | {
24 | INVENTORY,
25 | EQUIPMENT,
26 | BANK,
27 | GUILD_BANK,
28 | CRYSTAL,
29 | NONE;
30 |
31 | public static final ItemLocation[] VALUES = values();
32 |
33 | /**
34 | * Method valueOf.
35 | * @param index int
36 | * @return ItemLocation
37 | */
38 | public static ItemLocation valueOf(int index)
39 | {
40 | return VALUES[index];
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/listeners/DamageListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.listeners;
18 |
19 | import tera.gameserver.model.AttackInfo;
20 | import tera.gameserver.model.Character;
21 | import tera.gameserver.model.skillengine.Skill;
22 |
23 | /**
24 | * @author Ronn
25 | */
26 | public interface DamageListener
27 | {
28 | /**
29 | * Method onDamage.
30 | * @param attacker Character
31 | * @param attacked Character
32 | * @param info AttackInfo
33 | * @param skill Skill
34 | */
35 | void onDamage(Character attacker, Character attacked, AttackInfo info, Skill skill);
36 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/listeners/DeleteListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.listeners;
18 |
19 | import tera.gameserver.model.TObject;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public interface DeleteListener
25 | {
26 | /**
27 | * Method onDelete.
28 | * @param object TObject
29 | */
30 | void onDelete(TObject object);
31 | }
32 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/listeners/DieListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.listeners;
18 |
19 | import tera.gameserver.model.Character;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public interface DieListener
25 | {
26 | /**
27 | * Method onDie.
28 | * @param killer Character
29 | * @param killed Character
30 | */
31 | void onDie(Character killer, Character killed);
32 | }
33 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/listeners/LevelUpListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.listeners;
18 |
19 | import tera.gameserver.model.playable.Player;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public interface LevelUpListener
25 | {
26 | /**
27 | * Method onLevelUp.
28 | * @param player Player
29 | */
30 | void onLevelUp(Player player);
31 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/listeners/PlayerSelectListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.listeners;
18 |
19 | import tera.gameserver.model.playable.Player;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public interface PlayerSelectListener
25 | {
26 | /**
27 | * Method onSelect.
28 | * @param player Player
29 | */
30 | void onSelect(Player player);
31 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/listeners/PlayerSpawnListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.listeners;
18 |
19 | import tera.gameserver.model.playable.Player;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public interface PlayerSpawnListener
25 | {
26 | /**
27 | * Method onSpawn.
28 | * @param player Player
29 | */
30 | void onSpawn(Player player);
31 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/listeners/TerritoryListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.listeners;
18 |
19 | import tera.gameserver.model.TObject;
20 | import tera.gameserver.model.territory.Territory;
21 |
22 | /**
23 | * @author Ronn
24 | */
25 | public interface TerritoryListener
26 | {
27 | /**
28 | * Method onEnter.
29 | * @param territory Territory
30 | * @param object TObject
31 | */
32 | void onEnter(Territory territory, TObject object);
33 |
34 | /**
35 | * Method onExit.
36 | * @param territory Territory
37 | * @param object TObject
38 | */
39 | void onExit(Territory territory, TObject object);
40 | }
41 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/npc/SocialMonster.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.npc;
18 |
19 | import tera.gameserver.templates.NpcTemplate;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class SocialMonster extends Monster
25 | {
26 | /**
27 | * Constructor for SocialMonster.
28 | * @param objectId int
29 | * @param template NpcTemplate
30 | */
31 | public SocialMonster(int objectId, NpcTemplate template)
32 | {
33 | super(objectId, template);
34 | }
35 |
36 | /**
37 | * Method getKarmaMod.
38 | * @return int
39 | */
40 | @Override
41 | public int getKarmaMod()
42 | {
43 | return 0;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/npc/TaxationNpc.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.npc;
18 |
19 | import tera.gameserver.model.inventory.Bank;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public interface TaxationNpc
25 | {
26 | /**
27 | * Method getTax.
28 | * @return int
29 | */
30 | int getTax();
31 |
32 | /**
33 | * Method getTaxBank.
34 | * @return Bank
35 | */
36 | Bank getTaxBank();
37 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/npc/interaction/Condition.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.npc.interaction;
18 |
19 | import tera.gameserver.model.npc.Npc;
20 | import tera.gameserver.model.playable.Player;
21 |
22 | /**
23 | * @author Ronn
24 | */
25 | public interface Condition
26 | {
27 | Condition[] EMPTY_CONDITIONS = new Condition[0];
28 |
29 | /**
30 | * Method test.
31 | * @param npc Npc
32 | * @param player Player
33 | * @return boolean
34 | */
35 | boolean test(Npc npc, Player player);
36 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/npc/interaction/LinkType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.npc.interaction;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum LinkType
23 | {
24 | QUEST(24),
25 | DIALOG(0),
26 | TRADE(26),
27 | SHOP(28),
28 | FLY_PEGAS(26),;
29 | private int id;
30 |
31 | /**
32 | * Constructor for LinkType.
33 | * @param id int
34 | */
35 | private LinkType(int id)
36 | {
37 | this.id = id;
38 | }
39 |
40 | /**
41 | * Method getId.
42 | * @return int
43 | */
44 | public final int getId()
45 | {
46 | return id;
47 | }
48 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/npc/interaction/replyes/AbstractReply.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.npc.interaction.replyes;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | import rlib.logging.Logger;
22 | import rlib.logging.Loggers;
23 |
24 | /**
25 | * @author Ronn
26 | */
27 | public abstract class AbstractReply implements Reply
28 | {
29 | protected static final Logger log = Loggers.getLogger(Reply.class);
30 |
31 | /**
32 | * Constructor for AbstractReply.
33 | * @param node Node
34 | */
35 | public AbstractReply(Node node)
36 | {
37 | super();
38 | }
39 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/npc/interaction/replyes/Reply.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.npc.interaction.replyes;
18 |
19 | import tera.gameserver.model.npc.Npc;
20 | import tera.gameserver.model.npc.interaction.Link;
21 | import tera.gameserver.model.playable.Player;
22 |
23 | /**
24 | * @author Ronn
25 | * @created 12.04.2012
26 | */
27 | public interface Reply
28 | {
29 | /**
30 | * Method reply.
31 | * @param npc Npc
32 | * @param player Player
33 | * @param link Link
34 | */
35 | void reply(Npc npc, Player player, Link link);
36 | }
37 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/npc/summons/DefaultSummon.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.npc.summons;
18 |
19 | import tera.gameserver.templates.NpcTemplate;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class DefaultSummon extends Summon
25 | {
26 | /**
27 | * Constructor for DefaultSummon.
28 | * @param objectId int
29 | * @param template NpcTemplate
30 | */
31 | public DefaultSummon(int objectId, NpcTemplate template)
32 | {
33 | super(objectId, template);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/quests/QuestAction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.quests;
18 |
19 | import tera.gameserver.model.npc.Npc;
20 | import tera.gameserver.model.playable.Player;
21 |
22 | /**
23 | * @author Ronn
24 | */
25 | public interface QuestAction
26 | {
27 | /**
28 | * Method apply.
29 | * @param event QuestEvent
30 | */
31 | void apply(QuestEvent event);
32 |
33 | /**
34 | * Method getType.
35 | * @return QuestActionType
36 | */
37 | QuestActionType getType();
38 |
39 | /**
40 | * Method test.
41 | * @param npc Npc
42 | * @param player Player
43 | * @return boolean
44 | */
45 | boolean test(Npc npc, Player player);
46 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/quests/QuestEventListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.quests;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public interface QuestEventListener
23 | {
24 | /**
25 | * Method getType.
26 | * @return QuestEventType
27 | */
28 | QuestEventType getType();
29 |
30 | /**
31 | * Method notifyQuest.
32 | * @param event QuestEvent
33 | */
34 | void notifyQuest(QuestEvent event);
35 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/quests/QuestPanelState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.quests;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum QuestPanelState
23 | {
24 | REMOVED,
25 | ADDED,
26 | ACCEPTED,
27 | UPDATE,
28 | NONE;
29 |
30 | /**
31 | * Method valueOf.
32 | * @param index int
33 | * @return QuestPanelState
34 | */
35 | public static QuestPanelState valueOf(int index)
36 | {
37 | final QuestPanelState[] values = values();
38 |
39 | if ((index < 0) || (index >= values.length))
40 | {
41 | return NONE;
42 | }
43 |
44 | return values()[index];
45 | }
46 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/quests/classes/DealyQuest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.quests.classes;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | import tera.gameserver.model.quests.QuestType;
22 |
23 | /**
24 | * @author Ronn
25 | */
26 | public class DealyQuest extends AbstractQuest
27 | {
28 | /**
29 | * Constructor for DealyQuest.
30 | * @param type QuestType
31 | * @param node Node
32 | */
33 | public DealyQuest(QuestType type, Node node)
34 | {
35 | super(type, node);
36 | }
37 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/quests/classes/GuildQuest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.quests.classes;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | import tera.gameserver.model.quests.QuestType;
22 |
23 | /**
24 | * @author Ronn
25 | */
26 | public class GuildQuest extends AbstractQuest
27 | {
28 | /**
29 | * Constructor for GuildQuest.
30 | * @param type QuestType
31 | * @param node Node
32 | */
33 | public GuildQuest(QuestType type, Node node)
34 | {
35 | super(type, node);
36 | }
37 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/quests/classes/StoryQuest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.quests.classes;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | import tera.gameserver.model.quests.QuestType;
22 |
23 | /**
24 | * @author Ronn
25 | */
26 | public class StoryQuest extends AbstractQuest
27 | {
28 | /**
29 | * Constructor for StoryQuest.
30 | * @param type QuestType
31 | * @param node Node
32 | */
33 | public StoryQuest(QuestType type, Node node)
34 | {
35 | super(type, node);
36 | }
37 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/quests/classes/ZoneQuest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.quests.classes;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | import tera.gameserver.model.quests.QuestType;
22 |
23 | /**
24 | * @author Ronn
25 | */
26 | public class ZoneQuest extends AbstractQuest
27 | {
28 | /**
29 | * Constructor for ZoneQuest.
30 | * @param type QuestType
31 | * @param node Node
32 | */
33 | public ZoneQuest(QuestType type, Node node)
34 | {
35 | super(type, node);
36 | }
37 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/regenerations/AbstractRegen.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.regenerations;
18 |
19 | import tera.gameserver.model.Character;
20 |
21 | /**
22 | * @author Ronn
23 | * @created 11.04.2012
24 | * @param
25 | */
26 | public abstract class AbstractRegen implements Regen
27 | {
28 |
29 | protected E actor;
30 |
31 | /**
32 | * Constructor for AbstractRegen.
33 | * @param actor E
34 | */
35 | public AbstractRegen(E actor)
36 | {
37 | this.actor = actor;
38 | }
39 |
40 | /**
41 | * Method getActor.
42 | * @return E
43 | */
44 | protected final E getActor()
45 | {
46 | return actor;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/regenerations/Regen.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.regenerations;
18 |
19 | /**
20 | * @author Ronn
21 | * @created 14.04.2012
22 | */
23 | public interface Regen
24 | {
25 | /**
26 | * Method checkCondition.
27 | * @return boolean
28 | */
29 | boolean checkCondition();
30 |
31 | void doRegen();
32 | }
33 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/ChanceType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum ChanceType
23 | {
24 | ON_ATTACK,
25 | ON_CRIT_ATTACK,
26 | ON_ATTACKED,
27 | ON_CRIT_ATTACKED,
28 | ON_OWERTURN,
29 | ON_OWERTURNED,
30 | ON_SHIELD_BLOCK,
31 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/EffectState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum EffectState
23 | {
24 |
25 | CREATED,
26 |
27 | ACTING,
28 |
29 | FINISHING,
30 |
31 | FINISHED
32 | }
33 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/OperateType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum OperateType
23 | {
24 |
25 | PASSIVE,
26 |
27 | ACTIVE,
28 |
29 | CHARGE,
30 |
31 | ACTIVATE,
32 |
33 | CAST_ITEM,
34 |
35 | NO_CAST_ITEM,
36 |
37 | LOCK_ON;
38 | }
39 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/SkillGroup.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum SkillGroup
23 | {
24 | SHORT_ATTACK,
25 | LONG_ATTACK,
26 | SHORT_ULTIMATE,
27 | LONG_ULTIMATE,
28 | TRAP,
29 | SHIELD,
30 | JUMP,
31 | BUFF,
32 | DEBUFF,
33 | HEAL,
34 | NONE;
35 | public static final SkillGroup[] values = values();
36 | public static final int length = values.length;
37 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/SkillName.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum SkillName
23 | {
24 | COMBO_ATTACK_1,
25 | COMBO_ATTACK_2,
26 | COMBO_ATTACK_3,
27 | COMBO_ATTACK_4,
28 | WHIRLWIND,
29 | LEAPING_STRIKE,
30 | STUNNING_BACKHAND,
31 | STARTLING_KICK,
32 | HEART_THRUST,
33 | KNOCKDOWN_STRIKE,
34 | SHIELD_BASH,
35 | SHIELD_BARRAGE,
36 | COMBATIVE_STRIKE,
37 | POUNCE,
38 | TRAVERSE_CUT,
39 | VORTEX_SLASH,
40 | CHARGING_SLASH,
41 | RISING_FURY_1,
42 | RISING_FURY_2,
43 | SHOCKING_IMPLOSION,
44 | TRIPLE_NEMESIS,
45 | LEASH,
46 | UNKNOWN;
47 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/classes/ChargeStrike.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.classes;
18 |
19 | import tera.gameserver.templates.SkillTemplate;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class ChargeStrike extends ChargeDam
25 | {
26 | /**
27 | * Constructor for ChargeStrike.
28 | * @param template SkillTemplate
29 | */
30 | public ChargeStrike(SkillTemplate template)
31 | {
32 | super(template);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/classes/Passive.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.classes;
18 |
19 | import tera.gameserver.templates.SkillTemplate;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class Passive extends AbstractSkill
25 | {
26 | /**
27 | * Constructor for Passive.
28 | * @param template SkillTemplate
29 | */
30 | public Passive(SkillTemplate template)
31 | {
32 | super(template);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/funcs/Func.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.funcs;
18 |
19 | import tera.gameserver.model.Character;
20 |
21 | /**
22 | * @author Ronn
23 | * @created 12.04.2012
24 | */
25 | public interface Func
26 | {
27 | /**
28 | * Method addFuncTo.
29 | * @param owner Character
30 | */
31 | void addFuncTo(Character owner);
32 |
33 | /**
34 | * Method removeFuncTo.
35 | * @param owner Character
36 | */
37 | void removeFuncTo(Character owner);
38 | }
39 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/funcs/task/TaskFunc.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.funcs.task;
18 |
19 | import tera.gameserver.model.skillengine.funcs.Func;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public interface TaskFunc extends Func, Runnable
25 | {
26 | /**
27 | * Method getInterval.
28 | * @return int
29 | */
30 | int getInterval();
31 |
32 | /**
33 | * Method getLimit.
34 | * @return int
35 | */
36 | int getLimit();
37 | }
38 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/lambdas/FloatAdd.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.lambdas;
18 |
19 | /**
20 | * @author Ronn
21 | * @created 28.02.2012
22 | */
23 | public final class FloatAdd extends LambdaFloat
24 | {
25 | /**
26 | * Constructor for FloatAdd.
27 | * @param value float
28 | */
29 | public FloatAdd(float value)
30 | {
31 | super(value);
32 | }
33 |
34 | /**
35 | * Method calc.
36 | * @param val float
37 | * @return float
38 | * @see tera.gameserver.model.skillengine.lambdas.Lambda#calc(float)
39 | */
40 | @Override
41 | public float calc(float val)
42 | {
43 | return val + value;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/lambdas/FloatDiv.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.lambdas;
18 |
19 | /**
20 | * @author ?onn
21 | * @created 28.02.2012
22 | */
23 | public final class FloatDiv extends LambdaFloat
24 | {
25 | /**
26 | * Constructor for FloatDiv.
27 | * @param value float
28 | */
29 | public FloatDiv(float value)
30 | {
31 | super(value);
32 | }
33 |
34 | /**
35 | * Method calc.
36 | * @param val float
37 | * @return float
38 | * @see tera.gameserver.model.skillengine.lambdas.Lambda#calc(float)
39 | */
40 | @Override
41 | public float calc(float val)
42 | {
43 | return val / value;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/lambdas/FloatMul.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.lambdas;
18 |
19 | /**
20 | * @author Ronn
21 | * @created 28.02.2012
22 | */
23 | public final class FloatMul extends LambdaFloat
24 | {
25 | /**
26 | * Constructor for FloatMul.
27 | * @param value float
28 | */
29 | public FloatMul(float value)
30 | {
31 | super(value);
32 | }
33 |
34 | /**
35 | * Method calc.
36 | * @param val float
37 | * @return float
38 | * @see tera.gameserver.model.skillengine.lambdas.Lambda#calc(float)
39 | */
40 | @Override
41 | public float calc(float val)
42 | {
43 | return val * value;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/lambdas/FloatSet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.lambdas;
18 |
19 | /**
20 | * @author Ronn
21 | * @created 28.02.2012
22 | */
23 | public final class FloatSet extends LambdaFloat
24 | {
25 | /**
26 | * Constructor for FloatSet.
27 | * @param value float
28 | */
29 | public FloatSet(float value)
30 | {
31 | super(value);
32 | }
33 |
34 | /**
35 | * Method calc.
36 | * @param val float
37 | * @return float
38 | * @see tera.gameserver.model.skillengine.lambdas.Lambda#calc(float)
39 | */
40 | @Override
41 | public float calc(float val)
42 | {
43 | return value;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/lambdas/FloatSub.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.lambdas;
18 |
19 | /**
20 | * @author Ronn
21 | * @created 28.02.2012
22 | */
23 | public final class FloatSub extends LambdaFloat
24 | {
25 | /**
26 | * Constructor for FloatSub.
27 | * @param value float
28 | */
29 | public FloatSub(float value)
30 | {
31 | super(value);
32 | }
33 |
34 | /**
35 | * Method calc.
36 | * @param val float
37 | * @return float
38 | * @see tera.gameserver.model.skillengine.lambdas.Lambda#calc(float)
39 | */
40 | @Override
41 | public float calc(float val)
42 | {
43 | return val - value;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/lambdas/Lambda.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.lambdas;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public interface Lambda
23 | {
24 | /**
25 | * Method calc.
26 | * @param val float
27 | * @return float
28 | */
29 | float calc(float val);
30 |
31 | /**
32 | * Method getValue.
33 | * @return Object
34 | */
35 | Object getValue();
36 | }
37 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/shots/ShotType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.shots;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum ShotType
23 | {
24 | FAST_SHOT,
25 | SLOW_SHOT,
26 | }
27 |
--------------------------------------------------------------------------------
/java/tera/gameserver/model/skillengine/targethandler/AreOneTargetHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.skillengine.targethandler;
18 |
19 | import tera.gameserver.model.skillengine.Skill;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public final class AreOneTargetHandler extends AreaTargetHandler
25 | {
26 | /**
27 | * Method updateImpact.
28 | * @param skill Skill
29 | * @param targetX float
30 | * @param targetY float
31 | * @param targetZ float
32 | */
33 | @Override
34 | protected void updateImpact(Skill skill, float targetX, float targetY, float targetZ)
35 | {
36 | }
37 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/model/territory/BattleTerritory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.model.territory;
18 |
19 | import org.w3c.dom.Node;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class BattleTerritory extends AbstractTerritory
25 | {
26 | /**
27 | * Constructor for BattleTerritory.
28 | * @param node Node
29 | * @param type TerritoryType
30 | */
31 | public BattleTerritory(Node node, TerritoryType type)
32 | {
33 | super(node, type);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/java/tera/gameserver/network/clientpackets/RequestClientClose.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.clientpackets;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public class RequestClientClose extends ClientPacket
23 | {
24 | @Override
25 | protected void readImpl()
26 | {
27 | }
28 |
29 | @Override
30 | protected void runImpl()
31 | {
32 | owner.close();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/java/tera/gameserver/network/clientpackets/SelectedPlayer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.clientpackets;
18 |
19 | import tera.gameserver.manager.PlayerManager;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class SelectedPlayer extends ClientPacket
25 | {
26 |
27 | private int objectId;
28 |
29 | @Override
30 | public void readImpl()
31 | {
32 | objectId = readInt();
33 | }
34 |
35 | @Override
36 | public void runImpl()
37 | {
38 | final PlayerManager playerManager = PlayerManager.getInstance();
39 | playerManager.selectPlayer(getOwner(), objectId);
40 | }
41 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/network/crypt/CryptorState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.crypt;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public enum CryptorState
23 | {
24 |
25 | WAIT_FIRST_CLIENT_KEY,
26 |
27 | WAIT_FIRST_SERVER_KEY,
28 |
29 | WAIT_SECOND_CLIENT_KEY,
30 |
31 | WAIT_SECOND_SERCER_KEY,
32 |
33 | PREPARED,
34 |
35 | READY_TO_WORK;
36 | }
37 |
--------------------------------------------------------------------------------
/java/tera/gameserver/network/serverpackets/LordNum.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.serverpackets;
18 |
19 | import tera.gameserver.network.ServerPacketType;
20 |
21 | /**
22 | * @author Ronn
23 | */
24 | public class LordNum extends ServerPacket
25 | {
26 | private LordNum()
27 | {
28 | super();
29 | }
30 |
31 | /**
32 | * Method getPacketType.
33 | * @return ServerPacketType
34 | */
35 | @Override
36 | public ServerPacketType getPacketType()
37 | {
38 | return null;
39 | }
40 |
41 | @Override
42 | protected void writeImpl()
43 | {
44 | }
45 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/network/serverpackets/Test2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.serverpackets;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | import tera.gameserver.network.ServerPacketType;
22 |
23 | public class Test2 extends ServerConstPacket
24 | {
25 | private static final Test2 instance = new Test2();
26 |
27 | public static Test2 getInstance()
28 | {
29 | return instance;
30 | }
31 |
32 | @Override
33 | public ServerPacketType getPacketType()
34 | {
35 | return ServerPacketType.TEST_2;
36 | }
37 |
38 | @Override
39 | protected void writeImpl(ByteBuffer buffer)
40 | {
41 | writeOpcode(buffer);
42 | }
43 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/network/serverpackets/Test23.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.serverpackets;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | import tera.gameserver.network.ServerPacketType;
22 |
23 | public class Test23 extends ServerConstPacket
24 | {
25 | private static final Test23 instance = new Test23();
26 |
27 | public static Test23 getInstance()
28 | {
29 | return instance;
30 | }
31 |
32 | @Override
33 | public ServerPacketType getPacketType()
34 | {
35 | return ServerPacketType.TEST_23;
36 | }
37 |
38 | @Override
39 | protected void writeImpl(ByteBuffer buffer)
40 | {
41 | writeOpcode(buffer);
42 | writeInt(buffer, 0x00000000);
43 | }
44 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/network/serverpackets/Test26.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.serverpackets;
18 |
19 | import tera.gameserver.network.ServerPacketType;
20 |
21 | public class Test26 extends ServerPacket
22 | {
23 | private static final ServerPacket instance = new Test26();
24 |
25 | public static Test26 getInstance()
26 | {
27 | return (Test26) instance.newInstance();
28 | }
29 |
30 | @Override
31 | public ServerPacketType getPacketType()
32 | {
33 | return ServerPacketType.TEST_26;
34 | }
35 |
36 | @Override
37 | protected final void writeImpl()
38 | {
39 | writeShort(0x5415);
40 | writeInt(0);
41 | }
42 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/network/serverpackets/Test4.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.serverpackets;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | import tera.gameserver.network.ServerPacketType;
22 |
23 | public class Test4 extends ServerConstPacket
24 | {
25 | private static final Test4 instance = new Test4();
26 |
27 | public static Test4 getInstance()
28 | {
29 | return instance;
30 | }
31 |
32 | @Override
33 | public ServerPacketType getPacketType()
34 | {
35 | return ServerPacketType.TEST_4;
36 | }
37 |
38 | @Override
39 | protected void writeImpl(ByteBuffer buffer)
40 | {
41 | writeOpcode(buffer);
42 | }
43 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/network/serverpackets/Test6.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.network.serverpackets;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | import tera.gameserver.network.ServerPacketType;
22 |
23 | public class Test6 extends ServerConstPacket
24 | {
25 | private static final Test6 instance = new Test6();
26 |
27 | public static Test6 getInstance()
28 | {
29 | return instance;
30 | }
31 |
32 | @Override
33 | public ServerPacketType getPacketType()
34 | {
35 | return ServerPacketType.TEST_6;
36 | }
37 |
38 | @Override
39 | protected void writeImpl(ByteBuffer buffer)
40 | {
41 | writeOpcode(buffer);
42 | writeInt(buffer, 0x43480000);
43 | }
44 | }
--------------------------------------------------------------------------------
/java/tera/gameserver/scripts/commands/Command.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.scripts.commands;
18 |
19 | import tera.gameserver.model.playable.Player;
20 |
21 | /**
22 | * @author Ronn
23 | * @created 13.04.2012
24 | */
25 | public interface Command
26 | {
27 | /**
28 | * Method execution.
29 | * @param command String
30 | * @param player Player
31 | * @param values String
32 | */
33 | void execution(String command, Player player, String values);
34 |
35 | /**
36 | * Method getAccess.
37 | * @return int
38 | */
39 | int getAccess();
40 |
41 | /**
42 | * Method getCommands.
43 | * @return String[]
44 | */
45 | String[] getCommands();
46 | }
47 |
--------------------------------------------------------------------------------
/java/tera/gameserver/scripts/items/ItemExecutor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.scripts.items;
18 |
19 | import tera.gameserver.model.items.ItemInstance;
20 | import tera.gameserver.model.playable.Player;
21 |
22 | /**
23 | * @author Ronn
24 | * @created 13.04.2012
25 | */
26 | public interface ItemExecutor
27 | {
28 | /**
29 | * Method execution.
30 | * @param item ItemInstance
31 | * @param player Player
32 | */
33 | void execution(ItemInstance item, Player player);
34 |
35 | /**
36 | * Method getAccess.
37 | * @return int
38 | */
39 | int getAccess();
40 |
41 | /**
42 | * Method getItemIds.
43 | * @return int[]
44 | */
45 | int[] getItemIds();
46 | }
47 |
--------------------------------------------------------------------------------
/java/tera/gameserver/templates/ObjectTemplate.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.gameserver.templates;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public class ObjectTemplate
23 | {
24 | }
--------------------------------------------------------------------------------
/java/tera/remotecontrol/ClientPackets.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.remotecontrol;
18 |
19 | public class ClientPackets
20 | {
21 | }
--------------------------------------------------------------------------------
/java/tera/remotecontrol/PacketHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.remotecontrol;
18 |
19 | /**
20 | * @author Ronn
21 | * @created 26.03.2012
22 | */
23 | public interface PacketHandler
24 | {
25 | /**
26 | * Method processing.
27 | * @param packet Packet
28 | * @return Packet
29 | */
30 | Packet processing(Packet packet);
31 | }
--------------------------------------------------------------------------------
/java/tera/remotecontrol/ServerPackets.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.remotecontrol;
18 |
19 | public class ServerPackets
20 | {
21 | }
--------------------------------------------------------------------------------
/java/tera/util/ExtUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.util;
18 |
19 | import tera.gameserver.model.skillengine.Skill;
20 |
21 | import rlib.util.table.FuncValue;
22 | import rlib.util.wraps.Wrap;
23 |
24 | /**
25 | * @author Ronn
26 | */
27 | public final class ExtUtils
28 | {
29 | private ExtUtils()
30 | {
31 | throw new IllegalArgumentException();
32 | }
33 |
34 | public static final FuncValue FOLD_WRAP_TABLE_FUNC = value -> value.fold();
35 | public static final FuncValue FOLD_SKILL_TABLE_FUNC = value -> value.fold();
36 | }
--------------------------------------------------------------------------------
/java/tera/util/Identified.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of TJServer.
3 | *
4 | * TJServer is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * TJServer is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 | package tera.util;
18 |
19 | /**
20 | * @author Ronn
21 | */
22 | public interface Identified
23 | {
24 | /**
25 | * Method getObjectId.
26 | * @return int
27 | */
28 | int getObjectId();
29 | }
--------------------------------------------------------------------------------