# Nick Ward / Luke Garrison

import pygame

class Player(pygame.sprite.Sprite):
	def __init__(self, image, gs=None):
		self.image = image
		self.rect = self.image.get_rect()

	# update player instance with the data from the server
	def update(self, data):
		self.xpos = data.xpos
		self.ypos = data.ypos
		self.rect = self.image.get_rect()
		self.rect.center = (self.xpos, self.ypos)
		self.numBananas = data.numBananas
		self.isSlippingOnBanana = data.isSlippingOnBanana
