Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/presentation/src/world_entities/weapons/aiming_system.cc @ 9157

Last change on this file since 9157 was 9157, checked in by patrick, 18 years ago

aiming system compiles

File size: 1.7 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: Benjamin Grauer
13   co-programmer: ...
14*/
15
16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
17
18#include "aiming_system.h"
19
20#include "util/loading/load_param.h"
21#include "graphics_engine.h"
22#include "state.h"
23#include "material.h"
24#include "t_animation.h"
25#include "text.h"
26
27#include "world_entity.h"
28
29using namespace std;
30
31
32/**
33 * standart constructor
34 */
35AimingSystem::AimingSystem (const TiXmlElement* root)
36{
37  this->init();
38
39
40  if (root)
41    this->loadParams(root);
42}
43
44
45/**
46 * destroys a AimingSystem
47*/
48AimingSystem::~AimingSystem ()
49{}
50
51
52/**
53 * initializes the AimingSystem
54 */
55void AimingSystem::init()
56{
57  this->setClassID(CL_CROSSHAIR, "AimingSystem");
58  this->setName("AimingSystem");
59}
60
61
62void AimingSystem::loadParams(const TiXmlElement* root)
63{
64  PNode::loadParams(root);
65
66//   LoadParam(root, "texture", this, AimingSystem, setTexture)
67//       .describe("the texture-file to load onto the AimingSystem");
68//
69//   LoadParam(root, "size", this, AimingSystem, setSize)
70//       .describe("the size of the AimingSystem in Pixels");
71//
72//   LoadParam(root, "rotation-speed", this, AimingSystem, setRotationSpeed)
73//       .describe("the Speed with which the AimingSystem should rotate");
74}
75
76
77
78
79/**
80 * ticks the AimingSystem
81 * @param dt the time to ticks
82 */
83void AimingSystem::tick(float dt)
84{
85}
86
87
88/**
89 * draws the crosshair
90 */
91void AimingSystem::draw() const
92{
93}
Note: See TracBrowser for help on using the repository browser.