Ejemplo n.º 1
0
        public override void Enter(clsGroundAtom refGroundAtom)
        {
            refGroundAtom.clearAllEventSubscriptions();
            refGroundAtom.earthquakeEndedEventHandler   += earthquakeEndedInStructureEventHandler;
            refGroundAtom.forcesHaveArrivedEventHandler += forcesHaveArrivedInStructureEventHandler;
            refGroundAtom.currentStructureWaypoint       = Structure.waypointGraph.findClosestWaypoint(refGroundAtom.curr_X, refGroundAtom.curr_Y);
            exitWaypoints = Structure.waypointGraph.findExitPath(refGroundAtom.currentStructureWaypoint);
            PolygonWaypoint exitWaypoint = exitWaypoints[exitWaypoints.Count() - 1];

            exitEdgeNumber   = exitWaypoint.edgeNum;
            targetPosition   = new TerrainService.Vector();
            targetPosition.x = exitWaypoints[waypointIndex].x;
            targetPosition.y = exitWaypoints[waypointIndex].y;
            waypointIndex++;
        }
Ejemplo n.º 2
0
 public override void Enter(clsGroundAtom refGroundAtom)
 {
     refGroundAtom.clearAllEventSubscriptions();
     refGroundAtom.forcesHaveArrivedEventHandler += forcesHaveArrivedDefaultEventHandler;
     exitWaypoints = Structure.waypointGraph.findExitPath(refGroundAtom.currentStructureWaypoint);
     PolygonWaypoint exitWaypoint = exitWaypoints[exitWaypoints.Count() - 1];
     exitEdgeNumber = exitWaypoint.edgeNum;
     targetPosition = new TerrainService.Vector();
     targetPosition.x = exitWaypoints[waypointIndex].x;
     targetPosition.y = exitWaypoints[waypointIndex].y;
     waypointIndex++;
 }
Ejemplo n.º 3
0
 public override void Enter(clsGroundAtom refGroundAtom)
 {
     base.Enter(refGroundAtom);
     refGroundAtom.clearAllEventSubscriptions();
 }
Ejemplo n.º 4
0
 public override void Enter(clsGroundAtom refGroundAtom)
 {
     base.Enter(refGroundAtom);
     refGroundAtom.clearAllEventSubscriptions();
 }