Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/npcs/npc.cc @ 9571

Last change on this file since 9571 was 9235, checked in by bensch, 18 years ago

merged the presentation back

File size: 827 bytes
RevLine 
[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
[8724]23NPC::NPC(const TiXmlElement* root)
[1931]24{
[4597]25  this->setClassID(CL_NPC, "NPC");
[8724]26
[6142]27  this->toList(OM_GROUP_00);
[9003]28
[1931]29}
[1853]30
[5034]31
[1853]32NPC::~NPC () {}
33
34
[7076]35
[8724]36/**
37 * adds an AI to this NPC
38 */
39void NPC::addAI(AI* ai)
40{}
[7076]41
[5451]42
[7076]43
[8724]44/**
45 * loads the xml tags
46 * @param root: root xml tag for this element
47 */
48void NPC::loadParams(const TiXmlElement* root)
49{
[8894]50   WorldEntity::loadParams(root);
[1931]51}
[8724]52
Note: See TracBrowser for help on using the repository browser.