Command of football tactics

zhaozj2021-02-11  192

Connect to:

http://www.9cbs.net/develop/read_article.asp?id=11267

The attack in football can use Command mode, the movement of the striker is Command, the main forward and the substitute striker is ConcreteCommand, and the client is the coach, Invoker is a midfielder and a guard player. The advantage is to decouppen the striker and other strategic offensive players. And the striker can also be manipulated and expanded as other players. It is easy to add a striker because there is no need to change other players :) The code is as follows: Class striker {public: Virtual ~ forward ();

Virtual void offense () = 0; protected: forward ();

Class main striker: public striker {public: main striker (coach *);

Virtual void offensive (); private: coach * _CCO;

Class Substitute striker: public striker {public: Substitute striker (coach *);

Virtual void offensive (); private: coach * _CCO;

转载请注明原文地址:https://www.9cbs.com/read-5244.html

New Post(0)