public void setAlternativeEntityType(EntityType pAlternativeEntityType) { _alternativeEntityType = pAlternativeEntityType; }
///<summary> ///Describes the type of entity in the world ///</summary> public void setEntityType(EntityType pEntityType) { _entityType = pEntityType; }
///<summary> ///type of minefield ///</summary> public void setMinefieldType(EntityType pMinefieldType) { _minefieldType = pMinefieldType; }
public new void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _minefieldID.unmarshal(dis); _minefieldSequence = dis.readUshort(); _forceID = dis.readByte(); _numberOfPerimeterPoints = dis.readByte(); _minefieldType.unmarshal(dis); _numberOfMineTypes = dis.readUshort(); _minefieldLocation.unmarshal(dis); _minefieldOrientation.unmarshal(dis); _appearance = dis.readUshort(); _protocolMode = dis.readUshort(); for(int idx = 0; idx < _numberOfPerimeterPoints; idx++) { Point anX = new Point(); anX.unmarshal(dis); _perimeterPoints.Add(anX); }; for(int idx = 0; idx < _numberOfMineTypes; idx++) { EntityType anX = new EntityType(); anX.unmarshal(dis); _mineType.Add(anX); }; } // end try catch(Exception e) { Trace.WriteLine(e); Trace.Flush(); } }
///<summary> ///Entity type of mine being requested ///</summary> public void setRequestedMineType(EntityType pRequestedMineType) { _requestedMineType = pRequestedMineType; }
///<summary> ///entity type ///</summary> public void setPartEntityType(EntityType pPartEntityType) { _partEntityType = pPartEntityType; }
///<summary> ///type of environment ///</summary> public void setEnvironmentType(EntityType pEnvironmentType) { _environmentType = pEnvironmentType; }
///<summary> ///Mine type ///</summary> public void setMineType(EntityType pMineType) { _mineType = pMineType; }
/** * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful. */ public bool equals(EntityType rhs) { bool ivarsEqual = true; if(rhs.GetType() != this.GetType()) return false; if( ! (_entityKind == rhs._entityKind)) ivarsEqual = false; if( ! (_domain == rhs._domain)) ivarsEqual = false; if( ! (_country == rhs._country)) ivarsEqual = false; if( ! (_category == rhs._category)) ivarsEqual = false; if( ! (_subcategory == rhs._subcategory)) ivarsEqual = false; if( ! (_specific == rhs._specific)) ivarsEqual = false; if( ! (_extra == rhs._extra)) ivarsEqual = false; return ivarsEqual; }
///<summary> ///What munition was used in the burst ///</summary> public void setMunition(EntityType pMunition) { _munition = pMunition; }
///<summary> ///entity type of the aggregated entities ///</summary> public void setAggregateType(EntityType pAggregateType) { _aggregateType = pAggregateType; }
public new void unmarshal(DataInputStream dis) { base.unmarshal(dis); try { _aggregateID.unmarshal(dis); _forceID = dis.readByte(); _aggregateState = dis.readByte(); _aggregateType.unmarshal(dis); _formation = dis.readUint(); _aggregateMarking.unmarshal(dis); _dimensions.unmarshal(dis); _orientation.unmarshal(dis); _centerOfMass.unmarshal(dis); _velocity.unmarshal(dis); _numberOfDisAggregates = dis.readUshort(); _numberOfDisEntities = dis.readUshort(); _numberOfSilentAggregateTypes = dis.readUshort(); _numberOfSilentEntityTypes = dis.readUshort(); for(int idx = 0; idx < _numberOfDisAggregates; idx++) { AggregateID anX = new AggregateID(); anX.unmarshal(dis); _aggregateIDList.Add(anX); }; for(int idx = 0; idx < _numberOfDisEntities; idx++) { EntityID anX = new EntityID(); anX.unmarshal(dis); _entityIDList.Add(anX); }; _pad2 = dis.readByte(); for(int idx = 0; idx < _numberOfSilentAggregateTypes; idx++) { EntityType anX = new EntityType(); anX.unmarshal(dis); _silentAggregateSystemList.Add(anX); }; for(int idx = 0; idx < _numberOfSilentEntityTypes; idx++) { EntityType anX = new EntityType(); anX.unmarshal(dis); _silentEntitySystemList.Add(anX); }; _numberOfVariableDatumRecords = dis.readUint(); for(int idx = 0; idx < _numberOfVariableDatumRecords; idx++) { VariableDatum anX = new VariableDatum(); anX.unmarshal(dis); _variableDatumList.Add(anX); }; } // end try catch(Exception e) { Trace.WriteLine(e); Trace.Flush(); } }
///<summary> ///Object type ///</summary> public void setObjectType(EntityType pObjectType) { _objectType = pObjectType; }
///<summary> ///Type of supply ///</summary> public void setSupplyType(EntityType pSupplyType) { _supplyType = pSupplyType; }