Exemplo n.º 1
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _issuingEntityID.unmarshal(dis);
                _collidingEntityID.unmarshal(dis);
                _collisionEventID.unmarshal(dis);
                _pad = dis.readShort();
                _contactVelocity.unmarshal(dis);
                _mass = dis.readFloat();
                _location.unmarshal(dis);
                _collisionResultXX = dis.readFloat();
                _collisionResultXY = dis.readFloat();
                _collisionResultXZ = dis.readFloat();
                _collisionResultYY = dis.readFloat();
                _collisionResultYZ = dis.readFloat();
                _collisionResultZZ = dis.readFloat();
                _unitSurfaceNormal.unmarshal(dis);
                _coefficientOfRestitution = dis.readFloat();
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 2
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _munitionID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _velocity.unmarshal(dis);
                _locationInWorldCoordinates.unmarshal(dis);
                _burstDescriptor.unmarshal(dis);
                _locationInEntityCoordinates.unmarshal(dis);
                _detonationResult = dis.readByte();
                _numberOfArticulationParameters = dis.readByte();
                _pad = dis.readShort();
                for (int idx = 0; idx < _numberOfArticulationParameters; idx++)
                {
                    ArticulationParameter anX = new ArticulationParameter();
                    anX.unmarshal(dis);
                    _articulationParameters.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _emittingEntityID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _stateUpdateIndicator   = dis.readByte();
                _numberOfSystems        = dis.readByte();
                _paddingForEmissionsPdu = dis.readUshort();
                for (int idx = 0; idx < _numberOfSystems; idx++)
                {
                    ElectronicEmissionSystemData anX = new ElectronicEmissionSystemData();
                    anX.unmarshal(dis);
                    _systems.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 4
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _emittingEntityID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _stateChangeIndicator = dis.readByte();
                _pad = dis.readByte();
                _passiveParameterIndex        = dis.readUshort();
                _propulsionPlantConfiguration = dis.readByte();
                _numberOfShafts           = dis.readByte();
                _numberOfAPAs             = dis.readByte();
                _numberOfUAEmitterSystems = dis.readByte();
                for (int idx = 0; idx < _numberOfShafts; idx++)
                {
                    ShaftRPMs anX = new ShaftRPMs();
                    anX.unmarshal(dis);
                    _shaftRPMs.Add(anX);
                }
                ;

                for (int idx = 0; idx < _numberOfAPAs; idx++)
                {
                    ApaData anX = new ApaData();
                    anX.unmarshal(dis);
                    _apaData.Add(anX);
                }
                ;

                for (int idx = 0; idx < _numberOfUAEmitterSystems; idx++)
                {
                    AcousticEmitterSystemData anX = new AcousticEmitterSystemData();
                    anX.unmarshal(dis);
                    _emitterSystems.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _emittingEntityId.unmarshal(dis);
                _eventID.unmarshal(dis);
                _location.unmarshal(dis);
                _systemID.unmarshal(dis);
                _pad2 = dis.readUshort();
                _fundamentalParameters.unmarshal(dis);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 6
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _munitionID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _fireMissionIndex = dis.readUint();
                _locationInWorldCoordinates.unmarshal(dis);
                _burstDescriptor.unmarshal(dis);
                _velocity.unmarshal(dis);
                _range = dis.readFloat();
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 7
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _issuingEntityID.unmarshal(dis);
                _collidingEntityID.unmarshal(dis);
                _eventID.unmarshal(dis);
                _collisionType = dis.readByte();
                _pad           = dis.readByte();
                _velocity.unmarshal(dis);
                _mass = dis.readFloat();
                _location.unmarshal(dis);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method