org.globalse.arena.sword.algorithm
Class MissionXML

java.lang.Object
  |
  +--org.globalse.arena.frag.objects.FRAGObject
        |
        +--org.globalse.arena.sword.algorithm.MissionXML

public class MissionXML
extends FRAGObject

This class is used to transport the mission xml description to all peers.

See Also:
Serialized Form

Fields inherited from class org.globalse.arena.frag.objects.FRAGObject
controller, gameName, influenceRange, objectName, owner, position, visibilityRange
 
Constructor Summary
MissionXML()
           
 
Method Summary
 void actionEvent(ObjectActionEvent event)
           
 MathVector checkCollision(java.lang.String other, MathVector oldPos, MathVector delta)
           
 java.io.InputStream getInputStream()
          Returns the contents of the mission-description as an input stream.
 void init(java.lang.String gameName, java.lang.String filename)
          Initializes the MissionXML object.
 
Methods inherited from class org.globalse.arena.frag.objects.FRAGObject
checkAndResetMark, checkMark, clone, controlAcquired, controlLost, draw, getGameManager, getInfluenceRange, getObjectManager, getObjectName, getPosition, killed, mark, newerVersion, setInfluenceRange, setPosition
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MissionXML

public MissionXML()
Method Detail

init

public void init(java.lang.String gameName,
                 java.lang.String filename)
          throws java.io.IOException
Initializes the MissionXML object. The contents fo the file are read into an internal array.
Parameters:
gameName - the name of the FRAG-game
filename - the name of the file with the mission-description

getInputStream

public java.io.InputStream getInputStream()
Returns the contents of the mission-description as an input stream.
Returns:
an InputStream that contains the mission-description

actionEvent

public void actionEvent(ObjectActionEvent event)
Overrides:
actionEvent in class FRAGObject

checkCollision

public MathVector checkCollision(java.lang.String other,
                                 MathVector oldPos,
                                 MathVector delta)
Overrides:
checkCollision in class FRAGObject



This page is hosted by the Chair for Applied Software Engineering of the Technische Universität München.
Imprint (Impressum)