BPMN:Werewolf state diagram

From ZAMN Hacking
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
  <bpmn:process id="Process_1" isExecutable="false">
    <bpmn:startEvent id="StartEvent_1">
      <bpmn:outgoing>SequenceFlow_1wiw219</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_1wjafd8" name="Walking">
      <bpmn:incoming>SequenceFlow_1wiw219</bpmn:incoming>
      <bpmn:incoming>SequenceFlow_11vx41c</bpmn:incoming>
      <bpmn:incoming>SequenceFlow_0iqveq4</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_005etl0</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_1o1zazp</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_0bv8c4c</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_09wjc2h" name="Jumping">
      <bpmn:incoming>SequenceFlow_0fo3830</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0w2mjjx</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_07exafy" name="Pre-jump">
      <bpmn:incoming>SequenceFlow_005etl0</bpmn:incoming>
      <bpmn:incoming>SequenceFlow_1o1zazp</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0fo3830</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_00iul9d" name="Post-jump">
      <bpmn:incoming>SequenceFlow_0w2mjjx</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1wnjfg1</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_0iqveq4</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_0yuab31" name="Attacking">
      <bpmn:incoming>SequenceFlow_1wnjfg1</bpmn:incoming>
      <bpmn:incoming>SequenceFlow_0bv8c4c</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_11vx41c</bpmn:outgoing>
    </bpmn:task>
    <bpmn:sequenceFlow id="SequenceFlow_0fo3830" name="17 frames elapsed" sourceRef="Task_07exafy" targetRef="Task_09wjc2h" />
    <bpmn:sequenceFlow id="SequenceFlow_0w2mjjx" name="Reach end point" sourceRef="Task_09wjc2h" targetRef="Task_00iul9d" />
    <bpmn:sequenceFlow id="SequenceFlow_1wiw219" sourceRef="StartEvent_1" targetRef="Task_1wjafd8" />
    <bpmn:sequenceFlow id="SequenceFlow_005etl0" name="Health changed" sourceRef="Task_1wjafd8" targetRef="Task_07exafy" />
    <bpmn:sequenceFlow id="SequenceFlow_1o1zazp" name="70-344 pixels from target (6% chance)" sourceRef="Task_1wjafd8" targetRef="Task_07exafy" />
    <bpmn:sequenceFlow id="SequenceFlow_1wnjfg1" name="15 frames elapsed and &#60; 4 px on Y axis and &#60; 29 px on X axis from target" sourceRef="Task_00iul9d" targetRef="Task_0yuab31" />
    <bpmn:sequenceFlow id="SequenceFlow_0bv8c4c" name="&#60; 4 px on Y axis and &#60; 29 px on X axis from target" sourceRef="Task_1wjafd8" targetRef="Task_0yuab31" />
    <bpmn:sequenceFlow id="SequenceFlow_11vx41c" name="27 frames elapsed" sourceRef="Task_0yuab31" targetRef="Task_1wjafd8" />
    <bpmn:sequenceFlow id="SequenceFlow_0iqveq4" name="Random time between 16 and 31 frame elapsed" sourceRef="Task_00iul9d" targetRef="Task_1wjafd8" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="173" y="102" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1wjafd8_di" bpmnElement="Task_1wjafd8">
        <dc:Bounds x="270" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_09wjc2h_di" bpmnElement="Task_09wjc2h">
        <dc:Bounds x="540" y="200" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_07exafy_di" bpmnElement="Task_07exafy">
        <dc:Bounds x="540" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_00iul9d_di" bpmnElement="Task_00iul9d">
        <dc:Bounds x="540" y="320" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_0yuab31_di" bpmnElement="Task_0yuab31">
        <dc:Bounds x="270" y="320" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0fo3830_di" bpmnElement="SequenceFlow_0fo3830">
        <di:waypoint x="590" y="160" />
        <di:waypoint x="590" y="200" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="604" y="166" width="54" height="27" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0w2mjjx_di" bpmnElement="SequenceFlow_0w2mjjx">
        <di:waypoint x="590" y="280" />
        <di:waypoint x="590" y="320" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="610" y="293" width="80" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1wiw219_di" bpmnElement="SequenceFlow_1wiw219">
        <di:waypoint x="209" y="120" />
        <di:waypoint x="270" y="120" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_005etl0_di" bpmnElement="SequenceFlow_005etl0">
        <di:waypoint x="370" y="110" />
        <di:waypoint x="540" y="110" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="417" y="93" width="77" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1o1zazp_di" bpmnElement="SequenceFlow_1o1zazp">
        <di:waypoint x="370" y="130" />
        <di:waypoint x="540" y="130" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="417" y="140" width="81" height="40" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1wnjfg1_di" bpmnElement="SequenceFlow_1wnjfg1">
        <di:waypoint x="540" y="370" />
        <di:waypoint x="370" y="370" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="405" y="373" width="89" height="66" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0bv8c4c_di" bpmnElement="SequenceFlow_0bv8c4c">
        <di:waypoint x="300" y="160" />
        <di:waypoint x="300" y="320" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="206" y="220" width="87" height="40" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_11vx41c_di" bpmnElement="SequenceFlow_11vx41c">
        <di:waypoint x="320" y="320" />
        <di:waypoint x="320" y="160" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="333" y="266" width="54" height="27" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0iqveq4_di" bpmnElement="SequenceFlow_0iqveq4">
        <di:waypoint x="540" y="350" />
        <di:waypoint x="420" y="350" />
        <di:waypoint x="420" y="240" />
        <di:waypoint x="350" y="240" />
        <di:waypoint x="350" y="160" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="427" y="300" width="86" height="40" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>