Proper PlayerInstance comment adjustments.
This commit is contained in:
parent
18b3e6d3f2
commit
ce989648ae
@ -266,7 +266,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -274,7 +274,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -274,7 +274,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -274,7 +274,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -274,7 +274,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -160,7 +160,7 @@ public abstract class WorldObject
|
|||||||
* <li>_worldRegion != null <i>(WorldObject is visible at the beginning)</i></li><br>
|
* <li>_worldRegion != null <i>(WorldObject is visible at the beginning)</i></li><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Player that pick up the item
|
* @param creature Player that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature) // NOTE: Should move this function into ItemInstance because it does not apply to Creature
|
public void pickupMe(Creature creature) // NOTE: Should move this function into ItemInstance because it does not apply to Creature
|
||||||
|
@ -33,8 +33,8 @@ public class CustomNpcInstance
|
|||||||
private String _name;
|
private String _name;
|
||||||
private String _title;
|
private String _title;
|
||||||
|
|
||||||
private int[] _int; // PcInstance integer stats
|
private int[] _int; // PlayerInstance integer stats
|
||||||
private boolean _boolean[]; // PcInstance booolean stats
|
private boolean _boolean[]; // PlayerInstance booolean stats
|
||||||
private NpcInstance _npcInstance; // Reference to Npc with this stats
|
private NpcInstance _npcInstance; // Reference to Npc with this stats
|
||||||
private ClassId _classId; // ClassId of this (N)Pc
|
private ClassId _classId; // ClassId of this (N)Pc
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ public class CustomNpcInstance
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes the semi PcInstance stats for this NpcInstance, making it appear as a PcInstance on all clients
|
* Initializes the semi PlayerInstance stats for this NpcInstance, making it appear as a PlayerInstance on all clients
|
||||||
*/
|
*/
|
||||||
private final void initialize()
|
private final void initialize()
|
||||||
{
|
{
|
||||||
@ -480,7 +480,7 @@ public class CustomNpcInstance
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Not really necessary but maybe called upon on wrong random settings:
|
// Not really necessary but maybe called upon on wrong random settings:
|
||||||
// Initiate this PcInstance class id to the correct pcInstance class.
|
// Initiate this PlayerInstance class id to the correct PlayerInstance class.
|
||||||
final ClassId ids[] = ClassId.values();
|
final ClassId ids[] = ClassId.values();
|
||||||
if (ids != null)
|
if (ids != null)
|
||||||
{
|
{
|
||||||
|
@ -2886,7 +2886,7 @@ public class NpcInstance extends Creature
|
|||||||
public void setSpawn(Spawn spawn)
|
public void setSpawn(Spawn spawn)
|
||||||
{
|
{
|
||||||
_spawn = spawn;
|
_spawn = spawn;
|
||||||
// Does this Npc morph into a PcInstance?
|
// Does this Npc morph into a PlayerInstance?
|
||||||
if ((_spawn != null) && CustomNpcInstanceManager.getInstance().isCustomNpcInstance(_spawn.getId(), getNpcId()))
|
if ((_spawn != null) && CustomNpcInstanceManager.getInstance().isCustomNpcInstance(_spawn.getId(), getNpcId()))
|
||||||
{
|
{
|
||||||
new CustomNpcInstance(this);
|
new CustomNpcInstance(this);
|
||||||
|
@ -233,7 +233,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -233,7 +233,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
@ -271,7 +271,7 @@ public class ItemInstance extends WorldObject
|
|||||||
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
* <font color=#FF0000><b><u>Caution</u>: This method DOESN'T REMOVE the object from _allObjects of World </b></font><br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b><u>Example of use</u>:</b><br>
|
* <b><u>Example of use</u>:</b><br>
|
||||||
* <li>Do Pickup Item : PCInstance and Pet</li><br>
|
* <li>Do Pickup Item : PlayerInstance and Pet</li><br>
|
||||||
* @param creature Character that pick up the item
|
* @param creature Character that pick up the item
|
||||||
*/
|
*/
|
||||||
public void pickupMe(Creature creature)
|
public void pickupMe(Creature creature)
|
||||||
|
Loading…
Reference in New Issue
Block a user