01: package hero.entity;
02:
03: /*
04: * 25/03/2003 - 13:10:00
05: *
06: * AgentType.java -
07: * Copyright (C) 2003 Ecoo Team
08: * valdes@loria.fr
09: *
10: *
11: * This program is free software; you can redistribute it and/or
12: * modify it under the terms of the GNU Lesser General Public License
13: * as published by the Free Software Foundation; either version 2
14: * of the License, or (at your option) any later version.
15: *
16: * This program is distributed in the hope that it will be useful,
17: * but WITHOUT ANY WARRANTY; without even the implied warranty of
18: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19: * GNU Lesser General Public License for more details.
20: *
21: * You should have received a copy of the GNU Lesser General Public License
22: * along with this program; if not, write to the Free Software
23: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24: */
25:
26: public abstract class AgentType {
27:
28: public static AgentType make(int type) {
29: if (type == hero.interfaces.Constants.Ag.ALARM) {
30: return new AgentAlarmType();
31: }
32: return new AgentAlarmType();
33: }
34:
35: }
|