Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 3:06:08 PM (13 years ago)
Author:
catherine
Message:

Almost working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tetris/src/modules/tetris/TetrisStone.h

    r8249 r8537  
    5757            virtual ~TetrisStone() {}
    5858
     59            virtual void tick(float dt);
     60
    5961            virtual void moveFrontBack(const Vector2& value); //!< Overloaded the function to steer the bat up and down.
    6062            virtual void moveRightLeft(const Vector2& value); //!< Overloaded the function to steer the bat up and down.
     
    7577                { return this->size_; }
    7678
     79            const Vector3& getPreviousPosition() const
     80                { return this->previousPosition_; }
     81
     82            void setGame(Tetris* tetris)
     83                { assert(tetris); tetris_ = tetris; }
     84
    7785        private:
    7886            void enableMovement(void)
     
    8290            bool delay_;
    8391            Timer delayTimer_;
     92
     93            Vector3 previousPosition_;
     94            Tetris* tetris_;
    8495    };
    8596}
Note: See TracChangeset for help on using the changeset viewer.