Example #1
0
 def __init__(self, imatge, x, y):
     Jugador.__init__(self, imatge, x, y)
     self.angle = 0
     self.v_angular = 250
     self.original_image = self.image
     self.a = 400
     self.dispara = False
     self.rellotge_refredament = pygame.time.Clock()
     self.temps_ultim_tret = 0
     self.temps_refredament = 0.5
Example #2
0
	def __init__(self, color, nombre):
		Jugador.__init__(self, color, nombre)
		
		self.ronda = 0
		self.orden_ronda = []

		# Caracteristicas de personalidad
		self.proba_aceptada = 0
		self.caracter = PER_NEUTRAL

		# Inventario
		self.tarjetas = {}
		self.cantidad_canjes = 0

		# Tablero
		self.mis_continentes = []
Example #3
0
    def __init__(self, nombre, coeficientes):
        Jugador.__init__(self, nombre)
        self.nombre = 'Repr_' + nombre

        self.coeficientes = coeficientes

        self.history_pointer = 0
        self.cabezas = [-1, -1]
        self.feat = [OrderedDict(
            number=i,
            rival_pass=0,
            friend_pass=0,
            rival_kill=0,
            friend_kill=0,
            rival_put=0,
            friend_put=0,
            rival_avoid=0,
            friend_avoid=0,
            on_table=0,
            have=0,
        ) for i in range(7)]