Initialized classes & file structure
This commit is contained in:
parent
eaef37c5a2
commit
1c28b3a644
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/.idea/
|
0
data/config/mainConfig.json
Normal file
0
data/config/mainConfig.json
Normal file
5
src/entities/Collidable.py
Normal file
5
src/entities/Collidable.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import src.entities.Entity as Entity
|
||||||
|
|
||||||
|
|
||||||
|
class Collidable(Entity):
|
||||||
|
pass
|
5
src/entities/Entity.py
Normal file
5
src/entities/Entity.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class Entity:
|
||||||
|
def __init__(self):
|
||||||
|
self.texture
|
||||||
|
self.pos
|
||||||
|
self.id
|
5
src/entities/Interactable.py
Normal file
5
src/entities/Interactable.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import src.entities.Entity as Entity
|
||||||
|
|
||||||
|
|
||||||
|
class Interactable(Entity):
|
||||||
|
pass
|
7
src/entities/Npc.py
Normal file
7
src/entities/Npc.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import src.entities.Collidable as Collidable
|
||||||
|
|
||||||
|
|
||||||
|
class Npc(Collidable):
|
||||||
|
def __init__(self):
|
||||||
|
self.path
|
||||||
|
self.speed
|
5
src/entities/Pickupable.py
Normal file
5
src/entities/Pickupable.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import src.entities.Interactable as Interactable
|
||||||
|
|
||||||
|
|
||||||
|
class Pickupable(Interactable):
|
||||||
|
pass
|
6
src/entities/Player.py
Normal file
6
src/entities/Player.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import src.entities.Entity as Entity
|
||||||
|
|
||||||
|
|
||||||
|
class Player(Entity):
|
||||||
|
def __init__(self):
|
||||||
|
self.statistics
|
6
src/entities/Statistics.py
Normal file
6
src/entities/Statistics.py
Normal 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
3
src/game/EventManager.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
class EventManager:
|
||||||
|
def __init__(self):
|
||||||
|
self.player
|
6
src/game/Game.py
Normal file
6
src/game/Game.py
Normal 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
4
src/game/Map.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
class Map:
|
||||||
|
def __init__(self):
|
||||||
|
self.terrain
|
||||||
|
self.entites = []
|
4
src/game/Screen.py
Normal file
4
src/game/Screen.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
class Screen:
|
||||||
|
def __init__(self):
|
||||||
|
self.map
|
||||||
|
self.ui
|
3
src/game/SoundManager.py
Normal file
3
src/game/SoundManager.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
class SoundManager:
|
||||||
|
def __init__(self):
|
||||||
|
self.files = []
|
3
src/game/TerrainTile.py
Normal file
3
src/game/TerrainTile.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
class TerrainTile:
|
||||||
|
def __init__(self):
|
||||||
|
self.tiles = []
|
4
src/game/Timer.py
Normal file
4
src/game/Timer.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
class Timer:
|
||||||
|
def __init__(self):
|
||||||
|
self.time
|
||||||
|
self.cycle
|
3
src/ui/Ui.py
Normal file
3
src/ui/Ui.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
class Ui():
|
||||||
|
def __init__(self):
|
||||||
|
self.elements = []
|
5
src/ui/UiBar.py
Normal file
5
src/ui/UiBar.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import src.ui.UiElement as UiElement
|
||||||
|
|
||||||
|
|
||||||
|
class UiBar(UiElement):
|
||||||
|
pass
|
5
src/ui/UiButton.py
Normal file
5
src/ui/UiButton.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import src.ui.UiElement as UiElement
|
||||||
|
|
||||||
|
|
||||||
|
class UiButton(UiElement):
|
||||||
|
pass
|
2
src/ui/UiElement.py
Normal file
2
src/ui/UiElement.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
class UiElement:
|
||||||
|
pass
|
5
src/ui/UiImage.py
Normal file
5
src/ui/UiImage.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import src.ui.UiElement as UiElement
|
||||||
|
|
||||||
|
|
||||||
|
class UiImage(UiElement):
|
||||||
|
pass
|
5
src/ui/UiText.py
Normal file
5
src/ui/UiText.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import src.ui.UiElement as UiElement
|
||||||
|
|
||||||
|
|
||||||
|
class UiText(UiElement):
|
||||||
|
pass
|
5
src/ui/UiWindow.py
Normal file
5
src/ui/UiWindow.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import src.ui.UiElement as UiElement
|
||||||
|
|
||||||
|
|
||||||
|
class UiWindow(UiElement):
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user