Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2015, 10:16:26 PM (9 years ago)
Author:
fvultier
Message:

There is now a cube that can be moved on the playground using the arrow keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseSelecter.h

    r10397 r10406  
    4141            TowerDefenseSelecter(Context* context); //!< Constructor. Registers and initializes the object.
    4242            virtual ~TowerDefenseSelecter();
    43             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    44             virtual void tick(float dt);
     43            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);         
     44            virtual void tick(float dt);           
    4545            virtual void moveFrontBack(const Vector2& value); //!< Overloaded the function to steer the bat up and down.
    4646            virtual void moveRightLeft(const Vector2& value); //!< Overloaded the function to steer the bat up and down.
     
    5050            void fire(unsigned int firemode);
    5151            virtual void fired(unsigned int firemode);
     52            virtual void setSelectedPosition(TDCoordinate* newPos);
     53            virtual void setSelectedPosition(int x, int y);
     54
     55        private:           
     56            virtual void updatePosition();
     57           
    5258            TDCoordinate* selectedPos_;
    53 
    54 
    55 
    56         private:
    57 
    5859            bool moveUpPressed_;
    5960            bool moveDownPressed_;
    6061            bool moveLeftPressed_;
    61             bool moveRightPressed_;
     62            bool moveRightPressed_;           
    6263    };
    6364}
Note: See TracChangeset for help on using the changeset viewer.