~ubuntu-branches/debian/lenny/freecol/lenny

« back to all changes in this revision

Viewing changes to src/net/sf/freecol/server/model/ServerPlayer.java

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2008-08-10 16:59:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.4 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080810165902-re61hmmj8w5loebt
Tags: 0.7.4.dfsg+1-1
Pseudo new upstream release to work around dak's 
move-from-contrib-to-main bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 *  Copyright (C) 2002-2007  The FreeCol Team
 
3
 *
 
4
 *  This file is part of FreeCol.
 
5
 *
 
6
 *  FreeCol is free software: you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation, either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  FreeCol is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with FreeCol.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
1
20
 
2
21
package net.sf.freecol.server.model;
3
22
 
26
45
* {@link Connection} and {@link Socket}
27
46
*/
28
47
public class ServerPlayer extends Player implements ServerModelObject {
29
 
    public static final String  COPYRIGHT = "Copyright (C) 2003-2005 The FreeCol Team";
30
 
    public static final String  LICENSE = "http://www.gnu.org/licenses/gpl.html";
31
 
    public static final String  REVISION = "$Revision: 2374 $";
32
48
    
33
49
    /** The network socket to the player's client. */
34
50
    private Socket socket;
265
281
    public void toServerAdditionElement(XMLStreamWriter out) throws XMLStreamException {
266
282
        out.writeStartElement(getServerAdditionXMLElementTagName());
267
283
 
268
 
        out.writeAttribute("ID", getID());
 
284
        out.writeAttribute("ID", getId());
269
285
        
270
286
        out.writeEndElement();
271
287
    }
275
291
     * Sets the ID of the super class to be <code>serverID</code>.
276
292
     */
277
293
    public void updateID() {
278
 
        setID(serverID);
 
294
        setId(serverID);
279
295
    }
280
296
    
281
297