Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6643 for code


Ignore:
Timestamp:
Mar 29, 2010, 4:39:25 PM (15 years ago)
Author:
ebeier
Message:

engine stripes now working correctly

Location:
code/branches/ppspickups1
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ppspickups1/data/levels/templates/pickup_representation_templates_speed.oxt

    r6607 r6643  
    44            <StaticEntity>
    55                <attached>
    6                     <Billboard position="0,0,0" colour="1.0,0.0,0.0" material="Sphere2" scale=0.1>
     6                    <Billboard position="0,0,0" colour="0.50,0.90,0.25" material="Sphere2" scale=0.1>
    77                        <attached>
    8                             <Billboard position="0,0,0" colour="1.0,1.0,0.0" material="Cross" scale=0.7 />
     8                            <Billboard position="0,0,0" colour="0.90,0.90,0.10" material="3arrowsup" scale=0.7 />
    99                        </attached>
    1010                    </Billboard>
     
    1818  <SpeedPickup
    1919    duration = 10.0
    20     speedAdd = 0
     20    speedAdd = 100
    2121    SpeedMultiply = 10
    2222    activationType = "immediate"
  • code/branches/ppspickups1/src/modules/pickup/Pickup.cc

    r6607 r6643  
    245245            return false;
    246246        }
    247         if (false) /* How to check if Timer already running? */
     247        if (false) /* TODO: Check if Timer is already running */
    248248        {
    249249            COUT(1) << "Pickup durationTimer already in use." << std::endl;
  • code/branches/ppspickups1/src/modules/pickup/items/SpeedPickup.cc

    r6607 r6643  
    251251
    252252    void SpeedPickup::PickupTimerCallBack(void) {
    253         COUT(2) << "Timer ended!" << std::endl;
     253        /* Reset values */
    254254    }
    255255}
  • code/branches/ppspickups1/src/orxonox/interfaces/PickupCarrier.h

    r6607 r6643  
    4747namespace orxonox
    4848{
     49    class Pickupable;
     50    class Pickup;
     51    class HealthPickup;
     52    class MetaPickup;
     53    class SpeedPickup;
    4954
    5055    /**
  • code/branches/ppspickups1/src/orxonox/items/Engine.h

    r6607 r6643  
    115115            virtual const Vector3& getCarrierPosition(void);
    116116
    117             /* not in protected ?? */
     117            /* Should not be here */
    118118            inline void setSpeedAdd(float speedAdd)
    119119                { this->speedAdd_=speedAdd; }
  • code/branches/ppspickups1/src/orxonox/items/MultiStateEngine.cc

    r6417 r6643  
    129129                else
    130130                    this->state_ = Idle;
     131
     132                if (this->state_ = Idle && this->getSpeedAdd()>0)
     133                    this->state_ = Normal;
    131134            }
    132135
Note: See TracChangeset for help on using the changeset viewer.