space-game-proto/obj/player.py

16 lines
276 B
Python

class Player:
def __init__(self, name, location):
self.name = name
self.location = location
def getName(self):
return self.name
def setName(self, name):
self.name = name
def getLocation(self):
return self.location