Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/spaceshipcontrol/src/world_entities/player.cc @ 5839

Last change on this file since 5839 was 5839, checked in by snellen, 18 years ago

player.cc and player.h changed (both files in ../src/world_entities)

File size: 1.3 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: Christian Meyer
14*/
15
16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
17
18
19#include "executor/executor.h"
20#include "player.h"
21
22#include "track_manager.h"
23#include "objModel.h"
24#include "resource_manager.h"
25#include "factory.h"
26
27#include "weapons/weapon_manager.h"
28#include "weapons/test_gun.h"
29#include "weapons/turret.h"
30#include "weapons/cannon.h"
31
32#include "list.h"
33
34#include "event_handler.h"
35
36#include "event.h"
37
38using namespace std;
39
40CREATE_FACTORY(Player, CL_PLAYER);
41
42/**
43 * creates a new Player
44 * @param isFree if the player is free
45*/
46Player::Player()
47{
48  this->init();
49}
50
51
52/**
53 *  destructs the player, deletes alocated memory
54 */
55Player::~Player ()
56{
57}
58
59//#include "glgui_pushbutton.h"
60
61/**
62 * initializes a Player
63 */
64void Player::init()
65{
66//  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
67  this->setClassID(CL_PLAYER, "Player");
68
69  PRINTF(4)("PLAYER INIT\n");
70
71}
72
73
74void Player::process(const Event &event)
75{
76  this->controllable->process(event);
77}
78
Note: See TracBrowser for help on using the repository browser.