source:
orxonox.OLD/trunk/src/world_entities/npcs/npc.cc
@
8929
Last change on this file since 8929 was 8894, checked in by patrick, 18 years ago | |
---|---|
File size: 868 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 | ||
[4984] | 22 | |
[1858] | 23 | using namespace std; |
[1853] | 24 | |
[1858] | 25 | |
[8724] | 26 | NPC::NPC(const TiXmlElement* root) |
[1931] | 27 | { |
[4597] | 28 | this->setClassID(CL_NPC, "NPC"); |
[8724] | 29 | |
[6142] | 30 | this->toList(OM_GROUP_00); |
[1931] | 31 | } |
[1853] | 32 | |
[5034] | 33 | |
[1853] | 34 | NPC::~NPC () {} |
35 | ||
36 | ||
[7076] | 37 | |
[8724] | 38 | /** |
39 | * adds an AI to this NPC | |
40 | */ | |
41 | void NPC::addAI(AI* ai) | |
42 | {} | |
[7076] | 43 | |
[5451] | 44 | |
[7076] | 45 | |
[8724] | 46 | /** |
47 | * loads the xml tags | |
48 | * @param root: root xml tag for this element | |
49 | */ | |
50 | void NPC::loadParams(const TiXmlElement* root) | |
51 | { | |
[8894] | 52 | if(root != NULL) |
53 | WorldEntity::loadParams(root); | |
[1931] | 54 | } |
[8724] | 55 |
Note: See TracBrowser
for help on using the repository browser.