3 * Time-stamp: "2007-09-20 14:22:10 anton"
6 import java
.net
.InetAddress
;
11 * @author "Anton Johansson" <anton.johansson@gmail.com>
15 private InetAddress IPAdress
;
17 private String nickName
;
18 private Channel currentChannel
;
20 public User(String nickName
, InetAddress IPAdress
, int port
) {
21 this.nickName
= nickName
;
22 this.IPAdress
= IPAdress
;
26 public void changeNick(String newNick
) {
27 this.nickName
= newNick
;
30 public void joinChannel(Channel channel
) {
31 this.currentChannel
= channel
;
34 public void leaveChannel() {
35 this.currentChannel
= null;
38 public void setPort(int port
) {
43 public String
getNick() {
47 public InetAddress
getIPAddress() {
51 public int getPort() {
55 public Channel
getChannel() {
56 return this.currentChannel
;