From: Chad G. <ex...@us...> - 2004-06-24 05:13:25
|
Update of /cvsroot/openrpg-gde/JRPG/RPGUniversal/Interfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21774/RPGUniversal/Interfaces Modified Files: RPGObject.java RPGRealm.java Trackable.java Tracker.java Log Message: work on interfaces Index: RPGRealm.java =================================================================== RCS file: /cvsroot/openrpg-gde/JRPG/RPGUniversal/Interfaces/RPGRealm.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RPGRealm.java 23 Jun 2004 01:16:29 -0000 1.1 --- RPGRealm.java 24 Jun 2004 05:12:45 -0000 1.2 *************** *** 10,18 **** import RPGUniversal.Interfaces.CharacterInterfaces.*; /** ! * ! * @author exodist */ public interface RPGRealm { public boolean IsValidMove(RPGCharacter R, RPGCoordinates C); } --- 10,55 ---- import RPGUniversal.Interfaces.CharacterInterfaces.*; /** ! * Interface for a realm or world in which the game takes place, it should contain the characters and info on where they move and keep track of it all, an rpg is not necissarily restricted to one realm. ! * @author exodist */ public interface RPGRealm { + /** + * Test if the location a Character wants to move to is valid + * @param R Character that wishes to move + * @param C Coordinates Character wants to move to + * @return true if the new location is a valid move + */ public boolean IsValidMove(RPGCharacter R, RPGCoordinates C); + /** + * Add a character to the Realm + * @param R Character to add to the Realm + */ + public void AddCharacter(RPGCharacter R); + /** + * Remove a character from the Realm + * @param R Character to remove + */ + public void RemoveCharacter(RPGCharacter R); + /** + * Move a character within the realm + * @param R Character to move + * @param Old Coordinates character is moving from + */ + public void CharacterMoved(RPGCharacter R, RPGCoordinates Old); //new coordinates are stored inside RPGCharacter + /** + * Called when a character ont he map dies, takes care of dropping items, etc. + * @param R Character that died + */ + public void CharacterDied(RPGCharacter R); + /** + * Spawna character from template + * @param R character to spawn + */ + public void CharacterSpawn(RPGCharacter R); //different than add character, add charachter adds an existing character, characterSpawn adds a character from the templates fo the type passed. + /** + * Spawn a new character + * @param S Name of template to create caracter from + */ + public void CharacterSpawn(String S); //different than add character, add charachter adds an existing character, characterSpawn adds a character from the templates fo the type passed. } Index: Trackable.java =================================================================== RCS file: /cvsroot/openrpg-gde/JRPG/RPGUniversal/Interfaces/Trackable.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Trackable.java 22 Jun 2004 19:24:04 -0000 1.1 --- Trackable.java 24 Jun 2004 05:12:45 -0000 1.2 *************** *** 1,7 **** package RPGUniversal.Interfaces; - import RPGUniversal.ADTs.*; /** ! * Trackable object must impliment this so they can be tracked by characters */ public interface Trackable --- 1,7 ---- package RPGUniversal.Interfaces; + import RPGUniversal.Interfaces.LocationInterfaces.*; /** ! * Trackable object must impliment this so they can be tracked. */ public interface Trackable *************** *** 11,15 **** * @return coordinates of trackable object */ ! public Coordinates GetCoordinates(); /** * Add a tracker to the list of trackers. --- 11,15 ---- * @return coordinates of trackable object */ ! public RPGCoordinates GetCoordinates(); /** * Add a tracker to the list of trackers. Index: RPGObject.java =================================================================== RCS file: /cvsroot/openrpg-gde/JRPG/RPGUniversal/Interfaces/RPGObject.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RPGObject.java 22 Jun 2004 23:19:48 -0000 1.1 --- RPGObject.java 24 Jun 2004 05:12:45 -0000 1.2 *************** *** 8,13 **** /** ! * ! * @author exodist */ public interface RPGObject --- 8,13 ---- /** ! * Base Object for an RPG ! * @author exodist */ public interface RPGObject Index: Tracker.java =================================================================== RCS file: /cvsroot/openrpg-gde/JRPG/RPGUniversal/Interfaces/Tracker.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Tracker.java 22 Jun 2004 19:24:04 -0000 1.1 --- Tracker.java 24 Jun 2004 05:12:45 -0000 1.2 *************** *** 7,11 **** package RPGUniversal.Interfaces; - import RPGUniversal.ADTs.*; /** --- 7,10 ---- |