Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 11, 2014, 12:07:05 PM (10 years ago)
Author:
fvultier
Message:

Neue Platformen werden zur Laufzeit hinzugefugt, wenn sich die Ansicht nach oben verschiebt. Eigene Modelle importieren funktioniert.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickupsFS14/src/modules/jump/Jump.h

    r10022 r10032  
    4141#include "tools/Timer.h"
    4242#include "JumpPlatform.h"
     43#include <list>
     44
    4345
    4446namespace orxonox
     
    4951        public:
    5052            Jump(Context* context);
    51 
    52             //virtual void start();
     53            virtual void start();
    5354            //virtual void end();
    5455            //virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command
     56
     57            virtual void tick(float dt);
    5558
    5659            //void spawnEnemy();
    5760
    5861            void setCenterpoint(JumpCenterPoint* center){ this->center_ = center; }
     62
     63            virtual void addPlatform(float x, float y);
    5964
    6065           /*int getLives(){return this->lives;}
     
    6873            // checks if multiplier should be reset.
    6974            void comboControll();*/
    70             void init();
    7175            //int lives;
    7276            //int multiplier;
     
    7882            WeakPtr<JumpCenterPoint> center_;
    7983            WeakPtr<JumpShip> player;
     84            WeakPtr<Camera> camera;
    8085
    8186            /*Timer enemySpawnTimer;
     
    8691            int point;
    8792            bool b_combo;*/
     93            std::list<JumpPlatform*> platformList;
     94            float yScreenPosition;
     95            float screenShiftSinceLastUpdate;
    8896    };
    8997}
Note: See TracChangeset for help on using the changeset viewer.