[Megameknet-cvs] MegaMekNET/src/server/campaign/tasks Task.java,1.92,1.93 TrainingTask.java,1.1,1.2
Status: Inactive
Brought to you by:
mcwizard
From: Helge R. <mcw...@us...> - 2005-03-26 16:41:06
|
Update of /cvsroot/megameknet/MegaMekNET/src/server/campaign/tasks In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18212/src/server/campaign/tasks Modified Files: Task.java TrainingTask.java Log Message: Index: Task.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/server/campaign/tasks/Task.java,v retrieving revision 1.92 retrieving revision 1.93 diff -C2 -d -r1.92 -r1.93 *** Task.java 26 Mar 2005 16:05:19 -0000 1.92 --- Task.java 26 Mar 2005 16:40:58 -0000 1.93 *************** *** 1976,1983 **** }//end else if (Should give Triad Disabled message) else if (task.equalsIgnoreCase("Training")) { ! //t = new ! // TrainingTask(ActorHouse.getMember(Actor),targetPlanet,task,army,TaskID,this); ! CampaignMain.cm.toUser("Training missions are disabled at the moment! Check back later!", Actor, true); ! return; }//end else if(Should give Training Disabled message) else if (task.equalsIgnoreCase("ComponentRaid")) --- 1976,1980 ---- }//end else if (Should give Triad Disabled message) else if (task.equalsIgnoreCase("Training")) { ! t = new TrainingTask(ActorHouse.getMember(Actor.toLowerCase()), targetPlanet, task, actorArmy); }//end else if(Should give Training Disabled message) else if (task.equalsIgnoreCase("ComponentRaid")) Index: TrainingTask.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/server/campaign/tasks/TrainingTask.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TrainingTask.java 26 Mar 2005 16:05:19 -0000 1.1 --- TrainingTask.java 26 Mar 2005 16:40:58 -0000 1.2 *************** *** 17,21 **** --- 17,23 ---- import server.campaign.CampaignMain; + import server.campaign.SArmy; import server.campaign.SHouse; + import server.campaign.SPlanet; import server.campaign.SPlayer; *************** *** 26,29 **** --- 28,35 ---- public class TrainingTask extends Task { + public TrainingTask(SPlayer actor, SPlanet target, String task, SArmy army) { + super(actor,target,"Training task",army); + } + /* (non-Javadoc) * @see server.campaign.tasks.Task#doTickGain(server.campaign.SPlayer, int) |