Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2014, 3:58:59 PM (9 years ago)
Author:
sriedel
Message:

Working atm. including function after function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc

    r10117 r10118  
    3434#include "DodgeRaceShip.h"
    3535
    36 #include "core/CoreIncludes.h"
    37 #include "core/XMLPort.h"
    38 //#include "DodgeRace.h"
    39 
    4036namespace orxonox
    4137{
     
    4945        isFireing = false;
    5046        damping = 10;
     47
     48        lastTimeFront = 0;
     49        lastTimeLeft = 0;
     50        lastTime = 0;
    5151    }
    5252
     
    106106        setPosition(pos);
    107107        setOrientation(Vector3::UNIT_Y, Degree(270));
    108 
     108/*
    109109        // Level up!
    110110        if (pos.x > 42000)
     
    113113            setPosition(Vector3(0, 0, pos.z)); // pos - Vector3(30000, 0, 0)
    114114        }
    115 
     115*/
    116116        SUPER(DodgeRaceShip, tick, dt);
    117117    }
     
    139139        isFireing = bBoost;
    140140    }
    141    /* inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
     141    /*
     142    inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
    142143    {
    143144        // orxout() << "touch!!! " << endl; //<< otherObject << " at " << contactPoint;
     
    169170        return false;
    170171        // SUPER(DodgeRaceShip, collidesAgainst, otherObject, contactPoint);
    171     }*/
    172 
     172    }
     173*/
    173174    WeakPtr<DodgeRace> DodgeRaceShip::getGame()
    174175    {
     
    176177        {
    177178            for (ObjectList<DodgeRace>::iterator it = ObjectList<DodgeRace>::begin(); it != ObjectList<DodgeRace>::end(); ++it)
    178                 game = *it;
     179            {
     180                game = *it;
     181            }
    179182        }
    180183        return game;
    181184    }
    182 
     185/*
    183186    void DodgeRaceShip::death()
    184187    {
    185188        getGame()->costLife();
    186189        SpaceShip::death();
    187     }
     190    }*/
    188191}
Note: See TracChangeset for help on using the changeset viewer.