Adapter of football tactics

zhaozj2021-02-11  200

Connect to:

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

Sometimes, if you reuse a line, you will have problems. If Rebrov joins AC Milan, he and other team members may have problems, then use Shevchenko and other team members and his and thunder. Brov's pre-skilled teams, using Adapter mode, may also combine a good fit. Another example is that Ronaldo has not been cooperated with other teammates. At this time, I use a comprehensive Vieri to do Adapter to make a ball with him, and it will play a better cooperation. The striker is a public derived, and other players are privately derived, the code is as follows: Class is adapted forward {public: adapted forward (); Virtual void shoot (); Virtual Void running ();

Class Other team members {public: other team members (); void run (); Virtual Bool Pass ();

Class adapter striker: public adapted forward, Private other team members {public: adapted forward ();

Virtual void shoot (); Virtual Void running (); Virtual Bool Pass ();

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

New Post(0)