             if (robot.getType() == RobotType.HQ) {
                 var hq:DrawRobot = robot.getTeam() == Team.A ? hqA : hqB;
                 hq.destroyUnit();
+            }
+
+            if (RobotType.isEncampment(robot.getType())) {
+                var encampment:DrawRobot = new DrawRobot(0, RobotType.ENCAMPMENT, Team.NEUTRAL);
+                encampment.setLocation(robot.getLocation());
+                neutralEncampments[robot.getLocation()] = encampment;
             }
         }
 

                if (o.parent) {
                    o.parent.removeChild(o);
                }
                delete neutralEncampments[s.getLocation()]; // TODO dont delete just hide
            }

            var robot:DrawRobot = getRobot(s.getParentID());

﻿package battlecode.client.viewer.render {
    import battlecode.common.MapLocation;
    import battlecode.common.ResearchType;
    import battlecode.common.RobotType;
