Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2012, 10:00:06 AM (12 years ago)
Author:
mentzerf
Message:
  • Changed waypoint scale so that they are not visible anymore
  • Changed gun position
  • Changed Tower to be a Pawn subclass
  • Fixed glitches of Tower by overriding the orientation and rotation functions

+ Now spawning a few towers in -start

  • Clean up
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/newlevel2012/src/modules/towerdefense/Tower.h

    r9175 r9236  
    2020#include "towerdefense/TowerDefensePrereqs.h"
    2121#include "worldentities/pawns/SpaceShip.h"
     22       
    2223
    2324namespace orxonox
    2425{
    25     class _OrxonoxExport Tower : public SpaceShip
     26    class _OrxonoxExport Tower : public Pawn
    2627    {
    2728        public:
     
    2930                virtual ~Tower() {};
    3031               
     32                // Maybe later override these to move towers with cursor keys
     33                /*
    3134                virtual void moveFrontBack(const Vector2& value);
    3235                virtual void moveRightLeft(const Vector2& value);
     36                */
     37               
     38                // Overriding these to stop towers from spasing out
     39                void setOrientation(const Quaternion& orientation);
     40        virtual void rotateYaw(const Vector2& value);
     41        virtual void rotatePitch(const Vector2& value);
     42        virtual void rotateRoll(const Vector2& value);
    3343               
    3444                void setGame(TowerDefense* towerdefense)
Note: See TracChangeset for help on using the changeset viewer.