mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
21 lines
507 B
Python
21 lines
507 B
Python
|
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)
|