Skip to content

Commit

Permalink
Merge pull request #92 from mcgivrer/bugfix/move-inventory-to-demo-pkg
Browse files Browse the repository at this point in the history
bugfix(Inventory): Move inventory to demo package
  • Loading branch information
mcgivrer authored Nov 25, 2021
2 parents d5f7397 + 53a69b7 commit b97eff3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 14 deletions.
42 changes: 30 additions & 12 deletions docs/chapters/100-architecture.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: From a Class to Game
chapter: 100 - Architecture
author: Frédéric Delorme
description: Some details about global architecture for the Game framework.
created: 2021-08-01
tags: gamedev, architecture
title: From a Class to Game chapter: 100 - Architecture author: Frédéric Delorme description: Some details about global
architecture for the Game framework. created: 2021-08-01 tags: gamedev, architecture
---

## Architecture
Expand All @@ -17,7 +13,6 @@ Here is the core package internal architecture:
@startuml "Game Internal Architecture"
hide members
hide methods
!theme sketchy-outline
package "fr.snapgames.fromclasstogame" {
package "core" <<Frame>>{
Expand Down Expand Up @@ -76,17 +71,40 @@ _Core package internal architecture_

### An implementation

The following diagram expose our first Demo implementation.
Not all aspect of our components and systems are exposed but most of these classes usage are described here.

```plantuml
@startuml "Demonstration"
hide members
hide methods
package "fr.snapgames.fromclasstogame" {
package "core"{
package "scene"{
AbstractScene -- GameObject:objects
}
package "gfx" {
interface RenderHelper
class AbstractRenderHelper
Render -- RenderHelper:renderHelpers
}
}
package "demo" {
class ScoreRenderHelper implements RenderHelper
class ScoreObject extends GameObject
class DemoScene extends AbstractScene
DemoScene -- ScoreObject
package "render"{
class TextRenderHelper extends AbstractRenderHelper implements RenderHelper
class LifeRenderHelper extends AbstractRenderHelper implements RenderHelper
class ScoreRenderHelper extends AbstractRenderHelper implements RenderHelper
}
package "entity" {
class ScoreObject extends GameObject
class LifeObject extends GameObject
class TextObject extends GameObject
}
package "scenes"{
class DemoScene extends AbstractScene
}
}
}
@enduml
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package fr.snapgames.fromclasstogame.core.gfx.renderer;
package fr.snapgames.fromclasstogame.demo.render;

import fr.snapgames.fromclasstogame.core.entity.GameObject;
import fr.snapgames.fromclasstogame.core.exceptions.io.UnknownResource;
import fr.snapgames.fromclasstogame.core.gfx.renderer.RenderHelper;
import fr.snapgames.fromclasstogame.core.io.ResourceManager;
import fr.snapgames.fromclasstogame.demo.entity.InventoryObject;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import fr.snapgames.fromclasstogame.core.entity.TextObject;
import fr.snapgames.fromclasstogame.core.entity.particles.ParticleSystem;
import fr.snapgames.fromclasstogame.core.exceptions.io.UnknownResource;
import fr.snapgames.fromclasstogame.core.gfx.renderer.InventoryRenderHelper;
import fr.snapgames.fromclasstogame.demo.render.InventoryRenderHelper;
import fr.snapgames.fromclasstogame.core.gfx.renderer.ParticleSystemRenderHelper;
import fr.snapgames.fromclasstogame.core.io.ActionHandler;
import fr.snapgames.fromclasstogame.core.io.ResourceManager;
Expand Down

0 comments on commit b97eff3

Please sign in to comment.