import trapManager

class Player(object):
    def __init__(self,entityId,position):
        self.entityId = entityId
        self.position = position

    def checkTraps(self, trap):
        pos = self.position

        if trap.z <= pos.z <= trap.z + 3:
            if trap.x <= pos.x <= trap.x + 3:
                if trap.y <= pos.y <= trap.y + 3:
                    print(trap.name, True)
                    trapManager.activateTrap(trap.name, self.entityId)
