2014-08-31 01:03:39 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
"""
|
|
|
|
A class that represents a lawyer
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os, pygame
|
|
|
|
from support import operations
|
|
|
|
from support.colors import *
|
|
|
|
|
|
|
|
class Crystal:
|
|
|
|
|
|
|
|
def __init__(self, screen):
|
|
|
|
self.screen = screen
|
|
|
|
screen_width, screen_height = screen.get_size()
|
2014-08-31 11:48:20 +02:00
|
|
|
self.rect = self.screen.get_rect()
|
|
|
|
self.imageCenterX = self.rect.centerx
|
|
|
|
self.imageCenterY = self.rect.centery
|
|
|
|
self.pos = (self.imageCenterX-100,self.imageCenterY-5,200,183)
|
|
|
|
|
|
|
|
def getBoundaries(self):
|
|
|
|
return self.pos
|
|
|
|
|
2014-08-31 01:03:39 +02:00
|
|
|
|
2014-08-31 01:38:26 +02:00
|
|
|
def blitme(self):
|
2014-08-31 11:48:20 +02:00
|
|
|
pygame.draw.ellipse(self.screen, self.color, self.pos, 0)
|
|
|
|
|
2014-08-31 01:38:26 +02:00
|
|
|
|
2014-08-31 01:03:39 +02:00
|
|
|
def setColor(self, color):
|
2014-08-31 01:38:26 +02:00
|
|
|
self.color = color
|
|
|
|
|