Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 2, 2005, 10:55:47 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: 1. the crosshair is registered, @patrick: i thought it was a little bit harder… worked myself through the EventSystem, it is quite cool :)

  1. Player now knows a loadParams and init routine

also testing the Crosshair inside of the Player

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/crosshair.cc

    r4779 r4780  
    1717
    1818#include "crosshair.h"
    19 
     19#include "event_handler.h"
    2020using namespace std;
    2121
     
    2323/**
    2424   \brief standard constructor
    25    \todo this constructor is not jet implemented - do it
    2625*/
    2726Crosshair::Crosshair ()
     
    3029  this->setName("Crosshair");
    3130
     31  EventHandler::getInstance()->subscribe(this, ES_GAME, EV_MOUSE_MOTION);
     32
    3233}
    3334
     
    3536/**
    3637   \brief standard deconstructor
    37 
    3838*/
    3939Crosshair::~Crosshair ()
     
    4444void Crosshair::process(const Event &event)
    4545{
    46 
     46  printf("wow\n");
    4747
    4848}
Note: See TracChangeset for help on using the changeset viewer.