Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9853 for code


Ignore:
Timestamp:
Dec 2, 2013, 3:49:14 PM (11 years ago)
Author:
georgr
Message:

A should fire main lazors now, 3rd try

Location:
code/branches/wiimote/src/libraries/core/input
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wiimote/src/libraries/core/input/WiiMote.cc

    r9851 r9853  
    33//#include "core/command/ConsoleCommand.h"
    44#include <wiicpp/wiicpp/wiicpp.h>
    5 #include <command/CommandExecutor.h>
     5#include "core/command/CommandExecutor.h"
    66
    77
     
    2222                        if(p->Buttons.isPressed(CButtons::BUTTON_A))
    2323                                {
    24                                         CE->execute("fire 0", 0, 0);
     24                                        CommandExecutor::execute("fire 0", 0, 0);
    2525                                }
    2626                        Orientation o;
     
    5959                lastOrientation.roll = 0;
    6060                lastOrientation.pitch = 0;
    61                 CE = &(CommandExecutor::getInstance());
     61
    6262
    6363        }
  • code/branches/wiimote/src/libraries/core/input/WiiMote.h

    r9851 r9853  
    99namespace orxonox
    1010{
    11 
    12         class CommandExecutor;
    1311        struct Orientation
    1412    {
     
    4240                 CWiimote * p;
    4341                 CWii * PWii; //parent "wii" the wiimote is registered to
    44                  CommandExecutor * CE;
    4542        };
    4643};
Note: See TracChangeset for help on using the changeset viewer.