mirror of
https://github.com/csd4ni3l/connect-the-current.git
synced 2026-01-01 04:13:41 +01:00
17 lines
628 B
Python
17 lines
628 B
Python
from game.cell import Cell
|
|
|
|
class House(Cell):
|
|
def __init__(self, left_neighbour, top_neighbour):
|
|
super().__init__("house", left_neighbour, top_neighbour)
|
|
|
|
class PowerSource(Cell):
|
|
def __init__(self, left_neighbour, top_neighbour):
|
|
super().__init__("power_source", left_neighbour, top_neighbour)
|
|
self.on_click = lambda e: self.next_rotation()
|
|
|
|
class PowerLine(Cell):
|
|
def __init__(self, cell_type, left_neighbour, top_neighbour):
|
|
super().__init__(cell_type, left_neighbour, top_neighbour)
|
|
|
|
if not cell_type == "cross":
|
|
self.on_click = lambda e: self.next_rotation() |