X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/346a9b8e1fcfe30629f0d1ee4675e9e8f89890cf..4c4732c6ed8cb0aaa70fb2d4c6e5a958868c5349:/src/gui/DummyInstrumentChoice.py diff --git a/src/gui/DummyInstrumentChoice.py b/src/gui/DummyInstrumentChoice.py deleted file mode 100644 index 84b4003..0000000 --- a/src/gui/DummyInstrumentChoice.py +++ /dev/null @@ -1,57 +0,0 @@ -''' -Created on 21 janv. 2010 - -@author: samsam -''' - -import pygame -import pygame.midi -import sys -import time -import pickle - -from numpy import array -from numpy.linalg import norm - -from math import floor - -from gui.constants import * -from PlayingScreen import PlayingScreen -from instruments.Instrument import Instrument -from cursor.WarpingCursor import * -from controllers.Wiimote import Wiimote -from logging.EventLog import EventLog -from logging.PickleableEvent import PickleableEvent -from InstrumentChoice import InstrumentChoice - -class DummyInstrumentChoice(): - ''' - classdocs - ''' - - - def __init__(self,wiimotes, window, screen, clock, joys, portOffset, activeWiimotes, eventLog=None, replay = False, logFilePath = None, scaleFactor = 1): - ''' - Constructor - ''' - self.wiimotes =wiimotes - self.activeWiimotes =activeWiimotes - self.window = window - self.screen = screen - self.scaleFactor = scaleFactor - self.width = int(floor(screen.get_width()*self.scaleFactor)) - self.height = int(floor(screen.get_height()*self.scaleFactor)) - self.blitOrigin = ((self.screen.get_width()-self.width)/2,(self.screen.get_height()-self.height)/2) - self.clock = clock - self.savedScreen = pygame.Surface(self.screen.get_size()) - self.savedScreen.fill((255, 255, 255)) - self.playerScreen = pygame.Surface(self.savedScreen.get_size()) - self.playerScreen.blit(self.savedScreen, (0, 0)) - self.cursorPositions = [] - for i in range(len(self.wiimotes)): - self.wiimotes[i].cursor.screen = self.playerScreen - self.cursorPositions.append(self.wiimotes[i].cursor.centerPosition) - self.joys = joys - self.portOffset = portOffset - self.eventLog = eventLog - self.replay = replay \ No newline at end of file