From: Hendrik <nh...@us...> - 2007-03-27 21:24:06
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/player In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv9907/src/games/stendhal/server/entity/player Modified Files: Player.java Log Message: removed unused mana attributes from player class and pulled the get/set methods up to RPEntity where the attributes of the same name are in use Index: Player.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/player/Player.java,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** Player.java 27 Mar 2007 21:15:54 -0000 1.38 --- Player.java 27 Mar 2007 21:23:59 -0000 1.39 *************** *** 106,116 **** /** - *Mana [magic system] - */ - protected int mana; - - protected int base_mana; - - /** * A list of away replys sent to players. */ --- 106,109 ---- *************** *** 227,241 **** awayReplies = new HashMap<String, Long>(); ! /* ! * Beginner's luck (unless overriden by update) ! */ karma = 10.0; - /** - * Start off mana (will be able to be set... but not now) - */ - mana = 100; - base_mana = 100; - update(); } --- 220,226 ---- awayReplies = new HashMap<String, Long>(); ! // Beginner's luck (unless overriden by update) karma = 10.0; update(); } *************** *** 640,672 **** /** - * Gets the mana (magic) of a player... - */ - public int getMana() { - return mana; - } - - /** - * Gets the base mana (like base_hp) - */ - public int getBaseMana() { - return base_mana; - } - - // sets the available mana - public void setMana(int ManaToSet) { - mana = ManaToSet; - update(); - } - - /** - *Sets the base mana (like base_hp) - */ - public void setBaseMana(int value) { - base_mana = value; - update(); - - } - - /** * Gets the name of the last player who privately talked to this player * using the /tell command, or null if nobody has talked to this player --- 625,628 ---- |