From: Mark J S. <kr...@us...> - 2008-12-04 01:15:40
|
Update of /cvsroot/rails/18xx/rails/game In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv7075/18xx/rails/game Modified Files: ShareSellingRound.java Log Message: Added Constructors for proper initializing Index: ShareSellingRound.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/ShareSellingRound.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** ShareSellingRound.java 2 Dec 2008 20:29:15 -0000 1.16 --- ShareSellingRound.java 4 Dec 2008 01:15:35 -0000 1.17 *************** *** 23,31 **** IntegerState cashToRaise; public ShareSellingRound(GameManager gameManager, PublicCompanyI compNeedingTrain, int cashToRaise) { ! this.gameManager = gameManager; ! this.companyManager = gameManager.getCompanyManager(); this.companyNeedingTrain = compNeedingTrain; this.cashToRaise = new IntegerState("CashToRaise", cashToRaise); --- 23,40 ---- IntegerState cashToRaise; + /** + * Constructor with the GameManager, will call super class (StockRound's) Constructor to initialize, and + * and other parameters used by the Share Selling Round Class + * + * @param aGameManager The GameManager Object needed to initialize the StockRound Class + * @param compNeedingTraing The PublicCompanyI Object that needs to buy the train, + * who is limited on selling shares of + * @param cashToRaise The amount of cash needed to be raised during the special sell-off + * + */ public ShareSellingRound(GameManager gameManager, PublicCompanyI compNeedingTrain, int cashToRaise) { ! super (gameManager); this.companyNeedingTrain = compNeedingTrain; this.cashToRaise = new IntegerState("CashToRaise", cashToRaise); |