Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2017, 5:04:59 PM (7 years ago)
Author:
vyang
Message:

Spawn Funktion fuer die Asteroiden veraendert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids/AsteroidsStone.h

    r11516 r11528  
    2828
    2929/**
    30     @file InvaderEnemy.h
    31     @brief Declaration of the InvaderEnemy class.
     30    @file AsteroidsStone.h
     31    @brief Declaration of the AsteroidsStone class.
    3232*/
    3333
     
    3737#include "asteroids/AsteroidsPrereqs.h"
    3838
    39 #include "worldentities/MovableEntity.h"
     39#include "worldentities/Pawn.h"
    4040
    4141namespace orxonox
    4242{
    43     class _AsteroidsExport AsteroidsStone : public MovableEntity
     43    class _AsteroidsExport AsteroidsStone : public Pawn
    4444    {
    4545        public:
     
    4747            virtual void tick(float dt) override;
    4848
     49            //Radius of the asteroid
    4950            float r;
    5051            int level;
     52            virtual void setAsteroidsPlayer(AsteroidsShip* player){this->player = player;}
     53
    5154        protected:
    52             float fieldWidth_;
    53             float fieldHeight_;
     55
     56            //herausfinden->ueber Kamera Einstellung wie bei Pong?
     57            float fieldWidth_=500;
     58            float fieldHeight_=700;
    5459            Vector2 velocity;
    5560            float maxspeed;
    56 
    57 
    58 
    5961    };
    6062}
    6163
    62 #endif /* _InvaderEnemy_H__ */
     64#endif /* _AsteroidsStone_H__ */
Note: See TracChangeset for help on using the changeset viewer.