Initialized classes & file structure

This commit is contained in:
Marcin Kostrzewski 2020-03-31 21:47:09 +02:00
parent eaef37c5a2
commit 1c28b3a644
23 changed files with 97 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.idea/

View File

View File

@ -0,0 +1,5 @@
import src.entities.Entity as Entity
class Collidable(Entity):
pass

5
src/entities/Entity.py Normal file
View File

@ -0,0 +1,5 @@
class Entity:
def __init__(self):
self.texture
self.pos
self.id

View File

@ -0,0 +1,5 @@
import src.entities.Entity as Entity
class Interactable(Entity):
pass

7
src/entities/Npc.py Normal file
View File

@ -0,0 +1,7 @@
import src.entities.Collidable as Collidable
class Npc(Collidable):
def __init__(self):
self.path
self.speed

View File

@ -0,0 +1,5 @@
import src.entities.Interactable as Interactable
class Pickupable(Interactable):
pass

6
src/entities/Player.py Normal file
View File

@ -0,0 +1,6 @@
import src.entities.Entity as Entity
class Player(Entity):
def __init__(self):
self.statistics

View File

@ -0,0 +1,6 @@
class Statistics:
def __init__(self):
self.hp
self.hunger
self.thirst
self.stamina

3
src/game/EventManager.py Normal file
View File

@ -0,0 +1,3 @@
class EventManager:
def __init__(self):
self.player

6
src/game/Game.py Normal file
View File

@ -0,0 +1,6 @@
class Game:
def __init__(self):
self.resolution
self.windowName
self.fps
self.timer

4
src/game/Map.py Normal file
View File

@ -0,0 +1,4 @@
class Map:
def __init__(self):
self.terrain
self.entites = []

4
src/game/Screen.py Normal file
View File

@ -0,0 +1,4 @@
class Screen:
def __init__(self):
self.map
self.ui

3
src/game/SoundManager.py Normal file
View File

@ -0,0 +1,3 @@
class SoundManager:
def __init__(self):
self.files = []

3
src/game/TerrainTile.py Normal file
View File

@ -0,0 +1,3 @@
class TerrainTile:
def __init__(self):
self.tiles = []

4
src/game/Timer.py Normal file
View File

@ -0,0 +1,4 @@
class Timer:
def __init__(self):
self.time
self.cycle

3
src/ui/Ui.py Normal file
View File

@ -0,0 +1,3 @@
class Ui():
def __init__(self):
self.elements = []

5
src/ui/UiBar.py Normal file
View File

@ -0,0 +1,5 @@
import src.ui.UiElement as UiElement
class UiBar(UiElement):
pass

5
src/ui/UiButton.py Normal file
View File

@ -0,0 +1,5 @@
import src.ui.UiElement as UiElement
class UiButton(UiElement):
pass

2
src/ui/UiElement.py Normal file
View File

@ -0,0 +1,2 @@
class UiElement:
pass

5
src/ui/UiImage.py Normal file
View File

@ -0,0 +1,5 @@
import src.ui.UiElement as UiElement
class UiImage(UiElement):
pass

5
src/ui/UiText.py Normal file
View File

@ -0,0 +1,5 @@
import src.ui.UiElement as UiElement
class UiText(UiElement):
pass

5
src/ui/UiWindow.py Normal file
View File

@ -0,0 +1,5 @@
import src.ui.UiElement as UiElement
class UiWindow(UiElement):
pass