Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/camera/src/world_entities/test_entity.cc @ 10236

Last change on this file since 10236 was 10236, checked in by gfilip, 17 years ago

another update :)

File size: 1.5 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:
13   co-programmer:
14*/
15#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
16
17
18#include "executor/executor.h"
19#include "util/loading/factory.h"
20#include "util/loading/load_param.h"
21
22
23#include "test_entity.h"
24#include "debug.h"
25
26
27#include "state.h"
28
29
30
31#include "class_id_DEPRECATED.h"
32ObjectListDefinition(TestEntity);
33CREATE_FACTORY(TestEntity);
34
35
36
37/**
38 *
39 */
40TestEntity::TestEntity ()
41{
42  this->init();
43}
44
45
46/**
47 *
48 */
49TestEntity::TestEntity(const TiXmlElement* root)
50{
51  this->init();
52
53  if( root != NULL)
54    this->loadParams(root);
55}
56
57
58/**
59 *
60 */
61TestEntity::~TestEntity ()
62{}
63
64
65/**
66 *
67 */
68void TestEntity::init()
69{
70  this->registerObject(this, TestEntity::_objectList);
71  this->toList(OM_GROUP_00);
72  CM= new cameraman();
73  test();
74}
75
76void TestEntity::test()
77{
78  CM->moveCurrCam(-200, 0, 0);
79  CM->createCam();
80  CM->moveCam(0, -200, 0, 1);
81}
82
83
84
85/**
86 * loads the Settings of a MD2Creature from an XML-element.
87 * @param root the XML-element to load the MD2Creature's properties from
88 */
89void TestEntity::loadParams(const TiXmlElement* root)
90{
91  WorldEntity::loadParams(root);
92}
93
94void TestEntity::draw() const
95{
96
97}
98
99/**
100 *
101 */
102void TestEntity::tick (float time)
103{
104
105}
106
107
108void  TestEntity::changeState (bool sta)
109{
110
111}
Note: See TracBrowser for help on using the repository browser.