mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
18 lines
No EOL
444 B
Python
18 lines
No EOL
444 B
Python
class DNASuitPath:
|
|
def __init__(self):
|
|
self.suitPoints = []
|
|
|
|
def getNumPoints(self):
|
|
return len(self.suitPoints)
|
|
|
|
def getPointIndex(self, pointIndex):
|
|
return self.suitPoints[pointIndex].getIndex()
|
|
|
|
def addPoint(self, point):
|
|
self.suitPoints.append(point)
|
|
|
|
def getPoint(self, pointIndex):
|
|
return self.suitPoints[pointIndex]
|
|
|
|
def reversePath(self):
|
|
self.suitPoints.reverse() |