mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 05:02:31 -06:00
20 lines
507 B
Python
Executable file
20 lines
507 B
Python
Executable file
class GlobalGroup:
|
|
|
|
def __init__(self, groupType, groupId):
|
|
self.activePlayers = []
|
|
self.groupType = groupType
|
|
self.groupId = groupId
|
|
|
|
def getGroupPlayers(self):
|
|
return self.activePlayers
|
|
|
|
def isInGroup(self, avId):
|
|
if avId in self.activePlayers:
|
|
return True
|
|
return False
|
|
|
|
def addPlayerToGroup(self, avId):
|
|
self.activePlayers.append(avId)
|
|
|
|
def removePlayerFromGroup(self, avId):
|
|
self.activePlayers.remove(avId)
|