1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-11 09:42:54 +00:00

Automatic database updates

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-31 19:03:03 -03:00
parent 657b555fe1
commit 551dc6917e
26 changed files with 355 additions and 113 deletions

View File

@@ -148,6 +148,7 @@ public abstract class Actor extends PositionableObject {
* the race to set
*/
public void setRace(ActorRace race) {
desireUpdate();
this.race = race;
}
@@ -163,6 +164,7 @@ public abstract class Actor extends PositionableObject {
* the sex to set
*/
public void setSex(ActorSex sex) {
desireUpdate();
this.sex = sex;
}
@@ -178,6 +180,7 @@ public abstract class Actor extends PositionableObject {
* the level to set
*/
public void setLevel(int level) {
desireUpdate();
this.level = level;
}
@@ -193,6 +196,7 @@ public abstract class Actor extends PositionableObject {
* the hP to set
*/
public void setHP(double hP) {
desireUpdate();
HP = hP;
}
@@ -208,6 +212,7 @@ public abstract class Actor extends PositionableObject {
* the mP to set
*/
public void setMP(double mP) {
desireUpdate();
MP = mP;
}
@@ -223,6 +228,7 @@ public abstract class Actor extends PositionableObject {
* the experience to set
*/
public void setExperience(long experience) {
desireUpdate();
this.experience = experience;
}
@@ -238,6 +244,7 @@ public abstract class Actor extends PositionableObject {
* the sp to set
*/
public void setSP(int sp) {
desireUpdate();
this.sp = sp;
}

View File

@@ -58,6 +58,7 @@ public class Clan extends AbstractObject implements Iterable<L2Character> {
* the leaderID to set
*/
public void setLeaderID(CharacterID leaderID) {
desireUpdate();
this.leaderID = leaderID;
}

View File

@@ -85,6 +85,7 @@ public class Item extends PositionableObject {
* the count to set
*/
public void setCount(long count) {
desireUpdate();
this.count = count;
}
@@ -100,6 +101,7 @@ public class Item extends PositionableObject {
* the location to set
*/
public void setLocation(InventoryLocation location) {
desireUpdate();
this.location = location;
if (location != InventoryLocation.PAPERDOLL)
this.paperdoll = null;
@@ -117,6 +119,7 @@ public class Item extends PositionableObject {
* the paperdoll to set
*/
public void setPaperdoll(InventoryPaperdoll paperdoll) {
desireUpdate();
this.paperdoll = paperdoll;
}
@@ -146,6 +149,7 @@ public class Item extends PositionableObject {
* the ownerID to set
*/
public void setOwnerID(CharacterID ownerID) {
desireUpdate();
this.ownerID = ownerID;
}
}

View File

@@ -203,6 +203,7 @@ public class L2Character extends Player {
* the account ID to set
*/
public void setAccountID(AccountID accountID) {
desireUpdate();
this.accountID = accountID;
}
@@ -227,6 +228,7 @@ public class L2Character extends Player {
* the clanID to set
*/
public void setClanID(ClanID clanID) {
desireUpdate();
this.clanID = clanID;
}
@@ -251,6 +253,7 @@ public class L2Character extends Player {
* the petID to set
*/
public void setPetID(PetID petID) {
desireUpdate();
this.petID = petID;
}
@@ -266,6 +269,7 @@ public class L2Character extends Player {
* the name to set
*/
public void setName(String name) {
desireUpdate();
this.name = name;
}
@@ -281,6 +285,7 @@ public class L2Character extends Player {
* the title to set
*/
public void setTitle(String title) {
desireUpdate();
this.title = title;
}
@@ -296,6 +301,7 @@ public class L2Character extends Player {
* the characterClass to set
*/
public void setCharacterClass(CharacterClass characterClass) {
desireUpdate();
this.characterClass = characterClass;
}
@@ -311,6 +317,7 @@ public class L2Character extends Player {
* the character CP to set
*/
public void setCP(double CP) {
desireUpdate();
this.CP = CP;
}
@@ -326,6 +333,7 @@ public class L2Character extends Player {
* the online to set
*/
public void setOnline(boolean online) {
desireUpdate();
this.online = online;
}
@@ -341,6 +349,7 @@ public class L2Character extends Player {
* the lastAccess to set
*/
public void setLastAccess(Date lastAccess) {
desireUpdate();
this.lastAccess = lastAccess;
}
@@ -363,6 +372,7 @@ public class L2Character extends Player {
* the character karma points to set
*/
public void setKarma(int karma) {
desireUpdate();
this.karma = karma;
}
@@ -378,6 +388,7 @@ public class L2Character extends Player {
* the character PK kills to set
*/
public void setPkKills(int pkKills) {
desireUpdate();
this.pkKills = pkKills;
}
@@ -393,6 +404,7 @@ public class L2Character extends Player {
* the character PVP kills to set
*/
public void setPvpKills(int pvpKills) {
desireUpdate();
this.pvpKills = pvpKills;
}

View File

@@ -43,6 +43,7 @@ public abstract class PositionableObject extends AbstractObject {
* the coordinate point to set
*/
public void setPoint(Point3D point) {
desireUpdate();
this.point = point;
}
@@ -51,6 +52,7 @@ public abstract class PositionableObject extends AbstractObject {
}
public void setPosition(Coordinate coord) {
desireUpdate();
this.point = new Point3D(coord, (point != null ? point.getAngle() : 0));
}
}