mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-08 08:23:11 +00:00
Renamed Lineage2Connection to Lineage2Client to better match its
purpose Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
@@ -21,7 +21,7 @@ import java.util.Arrays;
|
||||
import org.htmlparser.Parser;
|
||||
import org.htmlparser.util.ParserException;
|
||||
|
||||
import com.l2jserver.game.net.Lineage2Connection;
|
||||
import com.l2jserver.game.net.Lineage2Client;
|
||||
import com.l2jserver.game.net.packet.server.SM_HTML;
|
||||
import com.l2jserver.model.template.NPCTemplate;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
@@ -39,7 +39,7 @@ import com.l2jserver.util.html.markup.MarkupTag;
|
||||
*/
|
||||
public class BaseNPCController implements NPCController {
|
||||
@Override
|
||||
public void action(NPC npc, Lineage2Connection conn, L2Character character,
|
||||
public void action(NPC npc, Lineage2Client conn, L2Character character,
|
||||
final String... args) throws L2Exception {
|
||||
if (args.length == 2) {
|
||||
if (args[0].equals("Chat")) {
|
||||
@@ -80,7 +80,7 @@ public class BaseNPCController implements NPCController {
|
||||
* @return true if chat message was sent
|
||||
* @throws L2Exception
|
||||
*/
|
||||
protected boolean talk(NPC npc, Lineage2Connection conn,
|
||||
protected boolean talk(NPC npc, Lineage2Client conn,
|
||||
L2Character character, String... args) throws L2Exception {
|
||||
String id = null;
|
||||
if (args.length >= 1) {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.l2jserver.model.world.npc.controller;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.game.net.Lineage2Connection;
|
||||
import com.l2jserver.game.net.Lineage2Client;
|
||||
import com.l2jserver.game.net.packet.server.SM_STATUS_UPDATE;
|
||||
import com.l2jserver.game.net.packet.server.SM_STATUS_UPDATE.Stat;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
@@ -44,7 +44,7 @@ public class MonsterController extends BaseNPCController {
|
||||
protected NPCService npcService;
|
||||
|
||||
@Override
|
||||
public void action(NPC mob, Lineage2Connection conn, L2Character character,
|
||||
public void action(NPC mob, Lineage2Client conn, L2Character character,
|
||||
String... args) throws L2Exception {
|
||||
// send hp update
|
||||
if (mob.getID().equals(character.getTargetID())) {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package com.l2jserver.model.world.npc.controller;
|
||||
|
||||
import com.l2jserver.game.net.Lineage2Connection;
|
||||
import com.l2jserver.game.net.Lineage2Client;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
import com.l2jserver.model.world.NPC;
|
||||
import com.l2jserver.util.exception.L2Exception;
|
||||
@@ -42,6 +42,6 @@ public interface NPCController {
|
||||
* @throws L2Exception
|
||||
* any {@link L2Exception}
|
||||
*/
|
||||
void action(NPC npc, Lineage2Connection conn, L2Character character,
|
||||
void action(NPC npc, Lineage2Client conn, L2Character character,
|
||||
String... args) throws L2Exception;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.l2jserver.model.world.npc.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import com.l2jserver.game.net.Lineage2Connection;
|
||||
import com.l2jserver.game.net.Lineage2Client;
|
||||
import com.l2jserver.game.net.packet.server.SM_HTML;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
import com.l2jserver.model.world.NPC;
|
||||
@@ -34,7 +34,7 @@ import com.l2jserver.util.html.markup.MarkupTag;
|
||||
*/
|
||||
public class NotImplementedNPCController extends BaseNPCController {
|
||||
@Override
|
||||
public void action(NPC npc, Lineage2Connection conn, L2Character character,
|
||||
public void action(NPC npc, Lineage2Client conn, L2Character character,
|
||||
final String... args) throws L2Exception {
|
||||
// action not handled
|
||||
final HtmlTemplate template = new HtmlTemplate() {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.l2jserver.model.world.npc.controller;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.game.net.Lineage2Connection;
|
||||
import com.l2jserver.game.net.Lineage2Client;
|
||||
import com.l2jserver.model.id.template.provider.TeleportationTemplateIDProvider;
|
||||
import com.l2jserver.model.template.TeleportationTemplate;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
@@ -40,7 +40,7 @@ public class TeleporterController extends BaseNPCController {
|
||||
protected TeleportationTemplateIDProvider teleportationIdProvider;
|
||||
|
||||
@Override
|
||||
public void action(NPC npc, Lineage2Connection conn, L2Character character,
|
||||
public void action(NPC npc, Lineage2Client conn, L2Character character,
|
||||
String... args) throws L2Exception {
|
||||
if (args.length >= 2) {
|
||||
if (args[0].equals("goto")) {
|
||||
|
||||
Reference in New Issue
Block a user