Last change
on this file was 418ace2, checked in by ZeroCool <devnull@…>, 15 years ago |
Some more stuff in server
|
-
Property mode
set to
100644
|
File size:
527 bytes
|
Rev | Line | |
---|
[34ccb37] | 1 | import java.net.Socket;
|
---|
| 2 | import java.util.Vector;
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | public class GameServer {
|
---|
| 6 | private Vector<GameRoom> gameRooms;
|
---|
| 7 | private Vector<Connection> connections;
|
---|
| 8 |
|
---|
| 9 | public GameServer(){
|
---|
| 10 | gameRooms = new Vector<GameRoom>();
|
---|
| 11 | connections = new Vector<Connection>();
|
---|
| 12 | GameRoom temp = new GameRoom(4,"Pupsik - 1");
|
---|
| 13 | temp.run();
|
---|
| 14 | gameRooms.add(temp);
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public void addConnection(Socket clientSocket) {
|
---|
[418ace2] | 18 | Connection temp = new Connection(clientSocket,"noob",1);
|
---|
[34ccb37] | 19 | temp.start();
|
---|
| 20 | connections.add(temp);
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.