unua enmetajxo
Fenris Wolf authored 8 years ago
|
1) /*
2)
3) IRC-Bot "Kvasir"
4) Copyright (C) 2016 Fenris Wolf (fenris@folksprak.org)
5)
6) This program 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 3 of the License, or
9) (at your option) any later version.
10)
11) This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
18)
19) */
20)
21)
22) /**
23) * @author fenris
24) */
25) abstract class klaso_kromajxo
26) {
27)
28) /**
29) * @author fenris
30) */
31) protected identigilo : string;
32)
33)
34) /**
35) * @author fenris
36) */
37) protected nomo : string;
38)
39)
40) /**
41) * @author fenris
42) */
43) protected priskribo : string;
44)
45)
|
malgranda gxisdatigajxo
Fenris Wolf authored 8 years ago
|
46) /**
47) * @author fenris
48) */
49) protected uzo : string;
50)
51)
|
unua enmetajxo
Fenris Wolf authored 8 years ago
|
52) /**
53) * @author fenris
54) */
55) protected auxtoro : string;
56)
57)
58) /**
59) * @author fenris
60) */
|
malgranda gxisdatigajxo
Fenris Wolf authored 8 years ago
|
61) public constructor
62) (
63) identigilo : string = null,
64) nomo : string = null,
65) priskribo : string = null,
66) uzo : string = null,
67) auxtoro : string = null
68) )
|
unua enmetajxo
Fenris Wolf authored 8 years ago
|
69) {
70) if (identigilo == null)
71) {
72) identigilo = cxeno_generi("kromajxo_");
73) console.warn("nenia identigilo donita; la jena estis generita: " + identigilo);
74) }
75) this.identigilo = identigilo;
76) this.nomo = nomo;
77) this.priskribo = priskribo;
|
malgranda gxisdatigajxo
Fenris Wolf authored 8 years ago
|
78) this.uzo = uzo;
|
unua enmetajxo
Fenris Wolf authored 8 years ago
|
79) this.auxtoro = auxtoro;
80) }
81)
82)
83) /**
84) * @author fenris
85) */
86) public identigilo_legi() : string
87) {
88) return this.identigilo;
89) }
90)
91)
92) /**
93) * @author fenris
94) */
95) public nomo_legi() : string
96) {
97) return this.nomo;
98) }
99)
100)
101) /**
102) * @author fenris
103) */
104) public priskribo_legi() : string
105) {
106) return this.priskribo;
107) }
108)
109)
|
malgranda gxisdatigajxo
Fenris Wolf authored 8 years ago
|
110) /**
111) * @author fenris
112) */
113) public uzo_legi() : string
114) {
115) return this.uzo;
116) }
117)
118)
|