Changeset d6c8eb6 in java-rpg-common
- Timestamp:
- Aug 31, 2007, 10:28:27 PM (17 years ago)
- Branches:
- master
- Children:
- de19622
- Parents:
- 04e7260
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Client.java
r04e7260 rd6c8eb6 1 1 import java.io.*; 2 2 import java.util.*; 3 4 /* 5 * An instance of this class should exist for every player that is online. THe PrintWriter is used to send messages to the player and the 6 * Calender stores when he logged on. 7 */ 3 8 4 9 public class Client { -
Connection.java
r04e7260 rd6c8eb6 1 1 import java.net.*; 2 2 import java.io.*; 3 4 /* 5 * This class serves as a basis for the threads that the other projects use to listen to incoming messages over a network. The most important 6 * method, run, initializes a connection based on the constructor arguments and calls different methods depending on the result, which could 7 * range from a successful connection, to an unsuccessful one, to one that gets interrupted later on. Any class inheriting this one simply 8 * has to extend the methods called in run and the processMessage method to customize the behavior in different situations. 9 */ 3 10 4 11 public class Connection extends Thread { -
Player.java
r04e7260 rd6c8eb6 1 2 /* 3 * This class contains most of the information about a player and an instance should exist for every registered player, whether or not he 4 * is online. 5 */ 1 6 2 7 public class Player implements Comparable<Player> {
Note:
See TracChangeset
for help on using the changeset viewer.