CapturePointSystem now tracks and verifies if a capturePoint can be taken over. Also the time is changed faster the more players stand on the capturepoint (number*dt). Also took care of the problem when both teams have the same contested capturepoint.

Added variable in the CapturePoint component:  CapturePointNumber. This is needed since we cant know what capturepoint is next to be taken over otherwise.
Updated the CapturePointTest according to current CapturePointSystem
TODO: try to refactor code in CapturePointSystem
This commit is contained in:
verysecrethero
2016-01-13 11:41:01 +01:00
parent 3a1056a2c3
commit 7a8604bf2b
6 changed files with 91 additions and 19 deletions
@@ -1,4 +1,5 @@
<c:CapturePoint>
<CapturePointNumber>0</CapturePointNumber>
<CaptureTimer>0</CaptureTimer>
<OwnedBy>0</OwnedBy>
<IsHomeCapturePointForTeamNumber>0</IsHomeCapturePointForTeamNumber>
@@ -12,6 +12,7 @@
<xs:element name="CaptureTimer" type="t:double" minOccurs="0"/>
<xs:element name="OwnedBy" type="t:int" minOccurs="0"/>
<xs:element name="IsHomeCapturePointForTeamNumber" type="t:int" minOccurs="0"/>
<xs:element name="CapturePointNumber" type="t:int" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>