source:
orxonox.OLD/trunk/src/world_entities/npcs/npc.cc
@
10291
Last change on this file since 10291 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 867 bytes |
Rev | Line | |
---|---|---|
[1853] | 1 | |
2 | ||
[4597] | 3 | /* |
[1853] | 4 | orxonox - the future of 3D-vertical-scrollers |
5 | ||
6 | Copyright (C) 2004 orx | |
7 | ||
8 | This program is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 2, or (at your option) | |
11 | any later version. | |
[1855] | 12 | |
13 | ### File Specific: | |
14 | main-programmer: Patrick Boenzli | |
15 | co-programmer: | |
[1853] | 16 | */ |
[5357] | 17 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY |
[1853] | 18 | |
19 | ||
20 | #include "npc.h" | |
21 | ||
[9869] | 22 | ObjectListDefinition(NPC); |
[4984] | 23 | |
[8724] | 24 | NPC::NPC(const TiXmlElement* root) |
[1931] | 25 | { |
[9869] | 26 | this->registerObject(this, NPC::_objectList); |
[8724] | 27 | |
[6142] | 28 | this->toList(OM_GROUP_00); |
[9003] | 29 | |
[1931] | 30 | } |
[1853] | 31 | |
[5034] | 32 | |
[1853] | 33 | NPC::~NPC () {} |
34 | ||
35 | ||
[7076] | 36 | |
[8724] | 37 | /** |
38 | * adds an AI to this NPC | |
39 | */ | |
40 | void NPC::addAI(AI* ai) | |
41 | {} | |
[7076] | 42 | |
[5451] | 43 | |
[7076] | 44 | |
[8724] | 45 | /** |
46 | * loads the xml tags | |
47 | * @param root: root xml tag for this element | |
48 | */ | |
49 | void NPC::loadParams(const TiXmlElement* root) | |
50 | { | |
[8894] | 51 | WorldEntity::loadParams(root); |
[1931] | 52 | } |
[8724] | 53 |
Note: See TracBrowser
for help on using the repository browser.