Connect to:
http://www.9cbs.net/develop/read_article.asp?id=10994
In the process of attacking, you can use the Template method mode, that is, the basic algorithm attack -> conversion -> defense does not change, the content of the conversion in the subclass, can be fully retracted, or in place robbery, etc. as follows:
Void team :: from attack () {offensive (); intermediate conversion process (); defensive ();
Void team :: Intermediate conversion process () {}
Void Subgraph :: Intermediate Transformation Process () {file: // Local robbery or full speed, etc.