megamek.server
Class ScenarioLoader

java.lang.Object
  extended by megamek.server.ScenarioLoader

public class ScenarioLoader
extends java.lang.Object


Nested Class Summary
 class ScenarioLoader.CritHit
          This is used specify the critical hit location
(package private)  class ScenarioLoader.CritHitPlan
          This class is used to store the critical hit plan for a entity it is loaded from the scenario file.
(package private)  class ScenarioLoader.DamagePlan
          This class is used to store the damage plan for a entity it is loaded from the scenario file.
(package private)  class ScenarioLoader.SetAmmoPlan
          This class is used to store the ammo Adjustments it is loaded from the scenario file.
 class ScenarioLoader.SetAmmoTo
          This is used to store the ammour to change ammo at a given location
 class ScenarioLoader.SpecDam
          This is used specify the one damage location
 
Constructor Summary
ScenarioLoader(java.io.File f)
           
 
Method Summary
 void applyDamage(Server s)
          The damage procedures are built into a server object, so we delay dealing the random damage until a server is made available to us.
 IGame createGame()
           
static void main(java.lang.String[] saArgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioLoader

public ScenarioLoader(java.io.File f)
Method Detail

applyDamage

public void applyDamage(Server s)
The damage procedures are built into a server object, so we delay dealing the random damage until a server is made available to us.


createGame

public IGame createGame()
                 throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] saArgs)
                 throws java.lang.Exception
Throws:
java.lang.Exception