-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[documentation] A small start on architecture documentation
- Loading branch information
1 parent
6c70aa4
commit d141a3c
Showing
5 changed files
with
112 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# A guide through Yaeger's internals | ||
|
||
After reading this guide, you should have a basic picture of how Yaeger's internals work. Not everything will be covered, | ||
but the basic setup should be clear and it should be possible to figure out how the missing parts work. | ||
|
||
## Introduction | ||
|
||
To get insight into how Yaeger is built, we will be using different views on its internals. We will base this on the game | ||
of Pac-Man. | ||
|
||
![Pac-Man](images/pacman.png) | ||
|
||
## Base classes for Scenes and Entities | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions
56
architecture/plantuml/classdiagrams/user-perspective-base.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
@startuml | ||
'https://plantuml.com/class-diagram | ||
|
||
class YaegerGame { | ||
setupGame(): void | ||
setupScenes(): void | ||
addScene(int, YaegerScene): void | ||
} | ||
|
||
interface YaegerScene { | ||
setupScene(): void | ||
setupEntities(): void | ||
} | ||
|
||
abstract class StaticScene implements YaegerScene{ | ||
addEntity(YaegerEntity): void | ||
} | ||
|
||
abstract class DynamicScene extends StaticScene{ | ||
} | ||
|
||
abstract class YaegerEntity { | ||
} | ||
|
||
abstract class CircleEntity extends YaegerEntity { | ||
} | ||
|
||
abstract class DynamicCircleEntity extends CircleEntity { | ||
} | ||
|
||
abstract class EllipseEntity extends YaegerEntity { | ||
} | ||
|
||
abstract class DynamicEllipseEntity extends EllipseEntity { | ||
} | ||
|
||
abstract class RectangleEntity extends YaegerEntity { | ||
} | ||
|
||
abstract class DynamicRectangleEntity extends RectangleEntity { | ||
} | ||
|
||
abstract class SpriteEntity extends YaegerEntity { | ||
} | ||
|
||
abstract class DynamicSpriteEntity extends SpriteEntity { | ||
} | ||
|
||
abstract class TextEntity extends YaegerEntity { | ||
} | ||
|
||
abstract class DynamicTextEntity extends TextEntity { | ||
} | ||
|
||
|
||
@enduml |
36 changes: 36 additions & 0 deletions
36
architecture/plantuml/classdiagrams/user-perspective-tilemap.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@startuml | ||
'https://plantuml.com/class-diagram | ||
|
||
class YaegerGame { | ||
setupGame(): void | ||
setupScenes(): void | ||
addScene(int, YaegerScene): void | ||
} | ||
|
||
interface YaegerScene { | ||
setupScene(): void | ||
setupEntities(): void | ||
} | ||
|
||
abstract class StaticScene implements YaegerScene{ | ||
addEntity(YaegerEntity): void | ||
} | ||
|
||
abstract class DynamicScene extends StaticScene{ | ||
} | ||
|
||
abstract class YaegerEntity { | ||
} | ||
|
||
interface TileMapContainer { | ||
setupTileMaps(): void | ||
addTileMap(TileMap): void | ||
} | ||
|
||
abstract class TileMap{ | ||
setupEntities(): void | ||
addEntity(int, Class<? extends YaegerEntity>): void | ||
} | ||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters