Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/water/src/subprojects/collision_detection/collision_test_entity.cc @ 7744

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

orxonox/trunk: new style for resources (prework/movement)

File size: 1.8 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific
12   main-programmer: Patrick Boenzli
13   co-programmer:
14*/
15#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
16
17
18#include "collision_test_entity.h"
19
20#include "util/loading/resource_manager.h"
21
22#include "vector.h"
23#include "objModel.h"
24#include "obb_tree.h"
25#include "util/loading/factory.h"
26
27using namespace std;
28CREATE_FACTORY(CollisionTestEntity, CL_ENVIRONMENT);
29
30/**
31 *  creates an environment
32*/
33CollisionTestEntity::CollisionTestEntity () : WorldEntity()
34{
35  this->init();
36  this->loadModel("models/ships/reaplow.obj");
37  //  this->loadModel("models/ships/figther.obj");
38
39  this->buildObbTree(10);
40}
41
42/**
43 * create an environment out of a XML-element
44 * @param root the XML-element to load the CollisionTestEntity from
45 */
46CollisionTestEntity::CollisionTestEntity(const TiXmlElement* root)
47{
48  this->init();
49  if (root != NULL)
50    this->loadParams(root);
51}
52
53/**
54 *  deletes an environment
55*/
56CollisionTestEntity::~CollisionTestEntity ()
57{}
58
59/**
60 * initialize an CollisionTestEntity
61 */
62void CollisionTestEntity::init()
63{
64  this->setClassID(CL_ENVIRONMENT, "CollisionTestEntity");
65}
66
67/**
68 * loads the Settings of an CollisionTestEntity from an XML-element.
69 * @param root the XML-element to load the ELements properties from
70 */
71void CollisionTestEntity::loadParams(const TiXmlElement* root)
72{
73  WorldEntity::loadParams(root);
74}
75
76
77/**
78 *  ticks the environment
79 * @param time the time about which to tick
80*/
81void CollisionTestEntity::tick (float time) {}
82
83
Note: See TracBrowser for help on using the repository browser.