home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 05 Tactical Issues / 06 Dawson / Listing2.cpp < prev   
Encoding:
C/C++ Source or Header  |  2001-12-09  |  742 b   |  22 lines

  1. /* Copyright (C) Chad Dawson, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Chad Dawson, 2001"
  9.  */
  10.  
  11. // Extending our Formation structure, we can set up an offset 
  12. // for the next rank. When all of the original FormationPosition 
  13. // structures have been filled, a new rank can be created at the 
  14. // specified offset from the current one.
  15.  
  16. struct Formation
  17. {
  18.     float mRankOffsetX;
  19.     float mRankOffsetY;
  20.     vector<FormationPosition> mPositions;
  21. }
  22.