Rev | Line | |
---|
[04e7260] | 1 | import java.io.*;
|
---|
| 2 | import java.util.*;
|
---|
| 3 |
|
---|
[d6c8eb6] | 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 | */
|
---|
| 8 |
|
---|
[04e7260] | 9 | public class Client {
|
---|
| 10 | private PrintWriter out;
|
---|
| 11 | private Calendar timeLoggedOn;
|
---|
| 12 |
|
---|
| 13 | public Client(PrintWriter newOut) {
|
---|
| 14 | out = newOut;
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public PrintWriter getOut() {
|
---|
| 18 | return out;
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | public Calendar getTimeLoggedOn() {
|
---|
| 22 | return timeLoggedOn;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | public void setTimeLoggedOn(Calendar newTime) {
|
---|
| 26 | timeLoggedOn = newTime;
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.