Connect back: http://www.9cbs.net/develop/read_article.asp? Id = 10848
Last time I forgot the oldest football tactics -> Middle-field engine tactics, that is, Mediator mode, in this mode, all mid-field organizations are completed by midfield engine (Mediator). The requirements for other players (Colleague) are reduced, and the requirements for mid-field engines are greatly improved. Both the pass mode, the first one is obtained by ordinary OBServer mode: the midfield engine as Observer, other players as Subject, the midfielder passes the passing of other players to others; second Other team members pass themselves to the midfield engine, running, and then pass the ball to him again, doing the wall of the wall. The code is as follows: Class Middle Field Engine {public: Virtual ~ Middle Field Engine ();
Virtual void transfer (); Virtual Void's delivery (other team members *) = 0;
Protected midfield engine (); Virtual Void with the ball, looking for a passenger () = 0;
Class Other team members {public: other team members (midfield engine *); Virtual Void offensive changes ();
Virtual Void Pass (Passing Event & Event);
Private: Middle Field Engine * _ Engine;
Void Other Players :: Offensive Change () {_ Engine -> Delivery of other players (THIS);