source: galcon-server/src/GameServer.java@ 418ace2

Last change on this file since 418ace2 was 418ace2, checked in by ZeroCool <devnull@…>, 14 years ago

Some more stuff in server

  • Property mode set to 100644
File size: 527 bytes
Line 
1import java.net.Socket;
2import java.util.Vector;
3
4
5public 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) {
18 Connection temp = new Connection(clientSocket,"noob",1);
19 temp.start();
20 connections.add(temp);
21 }
22}
Note: See TracBrowser for help on using the repository browser.