[project @ 2002-08-06 20:48:44 by unknown_lamer]
[clinton/bobotpp.git] / source / Person.H
1 // Person.H -*- C++ -*-
2 // Copyright (c) 1998 Etienne BERNARD
3
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // any later version.
8
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17
18 #ifndef PERSON_H
19 #define PERSON_H
20
21 #include "String.H"
22
23 class Bot;
24
25 class Person {
26 protected:
27 Bot *bot;
28 String address;
29 public:
30 Person(Bot *, String = "");
31 Person(Person &);
32
33 virtual ~Person() { }
34
35 virtual Person * copy();
36
37 String getNick() const;
38 String getAddress() const;
39
40 virtual void keepAlive() { }
41
42 virtual void sendNotice(String);
43
44 Person & operator=(const String &);
45 };
46
47 #endif