Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2015, 1:31:11 PM (9 years ago)
Author:
landauf
Message:

removed unnecessary code - setGametype or changedGametype is never called here

Location:
code/branches/core7/src/modules
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/modules/dodgerace/DodgeRaceCenterPoint.cc

    r10571 r10572  
    5454    }
    5555
    56     void DodgeRaceCenterPoint::changedGametype()
    57     {
    58         SUPER(DodgeRaceCenterPoint, changedGametype);
    59 
    60         // Check, whether it's still DodgeRace.
    61         this->checkGametype();
    62     }
    63 
    6456    void DodgeRaceCenterPoint::checkGametype()
    6557    {
  • code/branches/core7/src/modules/dodgerace/DodgeRaceCenterPoint.h

    r10234 r10572  
    5252            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5353
    54             virtual void changedGametype(); //!< Is called when the gametype has changed.
    5554        private:
    5655            void checkGametype();
  • code/branches/core7/src/modules/invader/InvaderCenterPoint.cc

    r10571 r10572  
    5454    }
    5555
    56     void InvaderCenterPoint::changedGametype()
    57     {
    58         SUPER(InvaderCenterPoint, changedGametype);
    59 
    60         // Check, whether it's still Invader.
    61         this->checkGametype();
    62     }
    63 
    6456    void InvaderCenterPoint::checkGametype()
    6557    {
  • code/branches/core7/src/modules/invader/InvaderCenterPoint.h

    r9943 r10572  
    4949            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5050
    51             virtual void changedGametype(); //!< Is called when the gametype has changed.
    5251        private:
    5352            void checkGametype();
  • code/branches/core7/src/modules/jump/JumpCenterpoint.cc

    r10571 r10572  
    8080    }
    8181
    82     void JumpCenterpoint::changedGametype()
    83     {
    84         SUPER(JumpCenterpoint, changedGametype);
    85 
    86         checkGametype();
    87     }
    88 
    8982    void JumpCenterpoint::checkGametype()
    9083    {
  • code/branches/core7/src/modules/jump/JumpCenterpoint.h

    r10262 r10572  
    114114            virtual ~JumpCenterpoint() {}
    115115            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method to create a JumpCenterpoint through XML.
    116             virtual void changedGametype();
    117116            void setPlatformStaticTemplate(const std::string& balltemplate)
    118117                { this->platformStaticTemplate_ = balltemplate; }
  • code/branches/core7/src/modules/mini4dgame/Mini4DgameBoard.cc

    r10571 r10572  
    901901    /**
    902902    @brief
    903         Is called when the gametype has changed.
    904     */
    905     void Mini4DgameBoard::changedGametype()
    906     {
    907         SUPER(Mini4DgameBoard, changedGametype);
    908 
    909         // Check, whether it's still Mini4Dgame.
    910         this->checkGametype();
    911     }
    912 
    913     /**
    914     @brief
    915903        Checks whether the gametype is Mini4Dgame and if it is, sets its centerpoint.
    916904    */
  • code/branches/core7/src/modules/mini4dgame/Mini4DgameBoard.h

    r10230 r10572  
    8181            Mini4DgameWinner getWinner();
    8282
    83             void changedGametype();
    8483            void checkGametype();
    8584
  • code/branches/core7/src/modules/pong/PongCenterpoint.cc

    r10571 r10572  
    8080    /**
    8181    @brief
    82         Is called when the gametype has changed.
    83     */
    84     void PongCenterpoint::changedGametype()
    85     {
    86         SUPER(PongCenterpoint, changedGametype);
    87 
    88         // Check, whether it's still Pong.
    89         this->checkGametype();
    90     }
    91 
    92     /**
    93     @brief
    9482        Checks whether the gametype is Pong and if it is, sets its centerpoint.
    9583    */
  • code/branches/core7/src/modules/pong/PongCenterpoint.h

    r9667 r10572  
    126126            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method to create a PongCenterpoint through XML.
    127127
    128             virtual void changedGametype(); //!< Is called when the gametype has changed.
    129 
    130128            /**
    131129            @brief Set the template for the ball. (e.g. to attach the model of the ball, but also to attach an EventListener to it to detect, when it hits the boundaries, and e.g. display some ParticleEffets, when it does.)
  • code/branches/core7/src/modules/tetris/TetrisCenterpoint.cc

    r10571 r10572  
    8080    /**
    8181    @brief
    82         Is called when the gametype has changed.
    83     */
    84     void TetrisCenterpoint::changedGametype()
    85     {
    86         SUPER(TetrisCenterpoint, changedGametype);
    87 
    88         // Check, whether it's still Tetris.
    89         this->checkGametype();
    90     }
    91 
    92     /**
    93     @brief
    9482        Checks whether the gametype is Tetris and if it is, sets its centerpoint.
    9583    */
  • code/branches/core7/src/modules/tetris/TetrisCenterpoint.h

    r9667 r10572  
    6464            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method to create a TetrisCenterpoint through XML.
    6565
    66             virtual void changedGametype(); //!< Is called when the gametype has changed.
    67            
    6866            /**
    6967            @brief Set the width of the playing field.
  • code/branches/core7/src/modules/towerdefense/TowerDefenseCenterpoint.cc

    r10571 r10572  
    8484    /**
    8585    @brief
    86         Is called when the gametype has changed.
    87     */
    88     void TowerDefenseCenterpoint::changedGametype()
    89     {
    90         SUPER(TowerDefenseCenterpoint, changedGametype);
    91 
    92         // Check, whether it's still TowerDefense.
    93         this->checkGametype();
    94     }
    95 
    96     /**
    97     @brief
    9886        Checks whether the gametype is TowerDefense and if it is, sets its centerpoint.
    9987    */
  • code/branches/core7/src/modules/towerdefense/TowerDefenseCenterpoint.h

    r9667 r10572  
    5353
    5454            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    55             virtual void changedGametype();
    5655
    5756            /**
Note: See TracChangeset for help on using the changeset viewer.