Skip to content
Snippets Groups Projects
Commit 82001403 authored by ctsfi's avatar ctsfi
Browse files

WORK YOU ANIMAL!

parent 277c27bf
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ public class PDUReciever {
socket1.receive(packet);
List<Pdu> pduBundle = pduFactory.getPdusFromBundle(packet.getData(), packet.getLength());
if (pduBundle.size() > 1) { // should be 1 for this project
......
......@@ -329,7 +329,7 @@ public class WhiteSimulation
firePdu.setMunitionExpendibleID(HEID);
//
CommentReliablePdu bmpDestroyedComment = pduFactory.makeCommentReliablePdu("BMP2 DESTROYED BY LAV25-A2 AFTER TWO BURSTS OF 25mm HEI-T ON TARGET");
CommentReliablePdu bmpSightedComment = pduFactory.makeCommentReliablePdu("LAV25-A2 ACQUIRES TARGET BMP2 WITHIN FIRING DISTANCE");
......@@ -337,16 +337,11 @@ public class WhiteSimulation
ResupplyOfferPdu resupplyOfferPdu = pduFactory.makeResupplyOfferPdu();
ArrayList<SupplyQuantity> pSupplies = new ArrayList<SupplyQuantity>();
SupplyQuantity ammoSupplyQ = new SupplyQuantity();
ammoSupplyQ.setSupplyType(HEType);
ammoSupplyQ.setQuantity(500);
//EntityType ammoSupply = new EntityType();
// ammoSupply.setEntityKind(EntityKind.MUNITION);
//ammoSupply.setDomain(Entity)
//ammoSupplyQ.setSupplyType(EntityType.)
pSupplies.add(ammoSupplyQ);
ArrayList<SupplyQuantity> pSupplies = new ArrayList<SupplyQuantity>();
SupplyQuantity ammoSupplyQ = new SupplyQuantity();
ammoSupplyQ.setSupplyType(HEType);
ammoSupplyQ.setQuantity(500);
pSupplies.add(ammoSupplyQ);
resupplyOfferPdu.setSupplies(pSupplies);
resupplyOfferPdu.setReceivingEntityID(lavID);
resupplyOfferPdu.setSupplyingEntityID(bmpID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment