2014-08-30 18:46:55 +02:00
|
|
|
#!/usr/bin/env python3
|
2014-08-30 18:53:38 +02:00
|
|
|
"""
|
|
|
|
A class that represents a lawyer
|
|
|
|
"""
|
2014-08-30 18:46:55 +02:00
|
|
|
|
|
|
|
import os, pygame
|
|
|
|
from support import operations
|
|
|
|
from support.colors import *
|
|
|
|
|
|
|
|
class Lawyer:
|
|
|
|
|
|
|
|
def __init__(self, screen):
|
|
|
|
self.screen = screen
|
|
|
|
screen_width, screen_height = screen.get_size()
|
|
|
|
temp_image = pygame.image.load(os.path.join('img', 'lawyer.png'))
|
2014-08-30 18:53:38 +02:00
|
|
|
# WARNING!! FIXME Absolute sizes FIXME
|
2014-08-30 18:46:55 +02:00
|
|
|
self.image = pygame.transform.scale(temp_image, (200, 400))
|
|
|
|
rect = self.image.get_rect()
|
|
|
|
self.pos = (screen_width - rect.w, screen_height - rect.h)
|
|
|
|
|
|
|
|
def blitme(self):
|
2014-08-30 18:53:38 +02:00
|
|
|
""" Blit this object to the screen """
|
2014-08-30 18:46:55 +02:00
|
|
|
operations.color_surface(self.image, WHITE)
|
|
|
|
self.screen.blit(self.image, self.pos)
|
2014-08-30 18:53:38 +02:00
|
|
|
|
|
|
|
def announce(self):
|
|
|
|
""" Announces the color to pin """
|