Skip to content

Commit

Permalink
removed entity collection inheretance in game_engine
Browse files Browse the repository at this point in the history
  • Loading branch information
lunathanael committed Mar 11, 2024
1 parent 833f32e commit 048f761
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions clash_royale/envs/game_engine/game_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
import numpy.typing as npt
import pygame

from clash_royale.envs.game_engine.entities.entity import Entity, EntityCollection
from clash_royale.envs.game_engine.entities.entity import EntityCollection
from clash_royale.envs.game_engine.arena import Arena
from clash_royale.envs.game_engine.struct import Scheduler, DefaultScheduler
from clash_royale.envs.game_engine.player import Player


class GameEngine(EntityCollection):
class GameEngine:
"""
Arena - High-level simulation component
Expand All @@ -35,7 +35,7 @@ class GameEngine(EntityCollection):
TODO: Need to figure out frame independent timekeeping
"""

def __init__(self,
def __init__(self,
width: int =18,
height: int=32,
resolution: Tuple[int, int] =(128, 128),
Expand All @@ -46,10 +46,8 @@ def __init__(self,
The game_engine should be initialized with settings such as resolution
and framerate, this shouldn't be used to initialize
any specific actual game, that will be handled in reset.
Arena() Constructor missing
Player() Constructor missing
"""

self.width = width # Width of arena
self.height = height # Height of arena
self.resolution = resolution
Expand Down

0 comments on commit 048f761

Please sign in to comment.