1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-16 12:02:47 +00:00

Removed object capabilities

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-22 14:55:54 -03:00
parent 3554664367
commit 49a8513ec5
109 changed files with 158 additions and 1569 deletions

View File

@@ -19,9 +19,6 @@ package com.l2jserver.model.world;
import com.l2jserver.model.id.object.CharacterID;
import com.l2jserver.model.id.template.ItemTemplateID;
import com.l2jserver.model.template.ItemTemplate;
import com.l2jserver.model.world.capability.Dropable;
import com.l2jserver.model.world.capability.Playable;
import com.l2jserver.model.world.capability.Spawnable;
import com.l2jserver.model.world.character.CharacterInventory.InventoryLocation;
import com.l2jserver.model.world.character.CharacterInventory.InventoryPaperdoll;
import com.l2jserver.util.dimensional.Coordinate;
@@ -47,8 +44,7 @@ import com.l2jserver.util.dimensional.Point;
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public class Item extends AbstractObject implements Playable, Spawnable,
Dropable {
public class Item extends PositionableObject {
/**
* The {@link ItemTemplate} ID
*/
@@ -80,33 +76,6 @@ public class Item extends AbstractObject implements Playable, Spawnable,
this.templateID = templateID;
}
@Override
public void drop(Coordinate position) {
this.coordinate = position;
this.location = null;
this.paperdoll = null;
}
@Override
public void spawn(Coordinate coordinate) {
this.drop(coordinate);
}
@Override
public boolean isSpawned() {
return (location != null);
}
@Override
public Coordinate getPosition() {
return coordinate;
}
@Override
public void setPosition(Coordinate coord) {
this.coordinate = coord;
}
/**
* @return the count
*/
@@ -176,17 +145,10 @@ public class Item extends AbstractObject implements Playable, Spawnable,
this.ownerID = ownerID;
}
/*
* (non-Javadoc)
*
* @see com.l2jserver.model.world.capability.Pointable#getPoint()
*/
@Override
public Point getPoint() {
return null;
}
@Override
public void setPoint(Point point) {
}