Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4977 was 4977, checked in by bensch, 19 years ago

orxonox/trunk: removed the WorldInterface, as its job is already been taken by state.h
also removed some totally obsolete but very cool functions of NPC

File size: 685 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*/
17
18
[4977]19//#include "ai.h"
[2036]20
[1853]21#include "npc.h"
22
[1858]23using namespace std;
[1853]24
[1858]25
[4976]26NPC::NPC()
[1931]27{
[4597]28  this->setClassID(CL_NPC, "NPC");
[4976]29
30  this->loadModel("models/bolido.obj");
[1931]31}
[1853]32
33NPC::~NPC () {}
34
35
[1858]36
[1931]37/* define the reaction, if the ship is been hit */
38int NPC::hit()
39{
40  die();
41  return 0;
42}
43
[2036]44
[1931]45void NPC::die()
46{
47}
Note: See TracBrowser for help on using the repository browser.