Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # To change this license header, choose License Headers in Project Properties.
- # To change this template file, choose Tools | Templates
- # and open the template in the editor.
- __author__="marcosilva"
- __date__ ="$Aug 8, 2014 12:42:53 AM$"
- #if __name__ == "__main__":
- # print "Hello World"
- class Player(object):
- def __init__(self,id,r,n,f,l,c):
- self.id=id
- self.r=r
- self.n=n
- self.f=f
- self.l=l
- self.c=c
- def get_id(self):
- return self.id
- def get_ratio(self):
- return self.r
- def get_nation(self):
- return self.n
- def get_first(self):
- return self.f
- def get_last(self):
- return self.l
- def get_nickname(self):
- if self.c==None:
- return "NONE"
- else:
- return self.c
- def get_fullname(self):
- if self.c==None:
- return self.f + " " + self.l
- else:
- return self.f + " " + self.l + " " + self.c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement