Changes
Page history
Update Osztály diagram
authored
Feb 26, 2022
by
Horváth István
Show whitespace changes
Inline
Side-by-side
Osztály-diagram.md
View page @
031de221
...
@@ -129,9 +129,9 @@ Color <-- GameOverview
...
@@ -129,9 +129,9 @@ Color <-- GameOverview
```
```
# `Presentation.World` komponens (játéktér megjelenés)
# `Presentation.World` komponens (játéktér megjelenés)
Minden osztály, ami
nem származik le
a
`ScriptableObject`
-ből,
az leszármazik
a
`MonoBehaviour`
-ből.
Minden osztály, ami
`...Data`
elnevezéssel rendelkezik, az
a
`ScriptableObject`
-ből,
minden más osztály pedig
a
`MonoBehaviour`
-ből
származik le
.
```
plantuml
```
plantuml
package Presentation.
World
{
package Presentation.
View
{
enum PrepareStage {
enum PrepareStage {
BUILDING_TOWERS
BUILDING_TOWERS
PURCHASING_UNITS
PURCHASING_UNITS
...
@@ -168,7 +168,7 @@ package Presentation.World {
...
@@ -168,7 +168,7 @@ package Presentation.World {
Update(float): void
Update(float): void
}
}
class UnitData
extends ScriptableObject
{
class UnitData {
AliveSprite: Sprite
AliveSprite: Sprite
DestroyedSprite: Sprite
DestroyedSprite: Sprite
AttackEffect: GameObject
AttackEffect: GameObject
...
@@ -185,7 +185,7 @@ package Presentation.World {
...
@@ -185,7 +185,7 @@ package Presentation.World {
abstract class Building {
abstract class Building {
}
}
class CastleData
extends ScriptableObject
{
class CastleData {
AmbientEffect: GameObject
AmbientEffect: GameObject
ExplosionEffect: GameObject
ExplosionEffect: GameObject
IntactSprite: Sprite
IntactSprite: Sprite
...
@@ -200,7 +200,7 @@ package Presentation.World {
...
@@ -200,7 +200,7 @@ package Presentation.World {
Destroy(): void
Destroy(): void
}
}
class ProjectileData
extends ScriptableObject
{
class ProjectileData {
Sprite: Sprite
Sprite: Sprite
FlyingEffect: GameObject
FlyingEffect: GameObject
ImpactEffect: GameObject
ImpactEffect: GameObject
...
@@ -217,15 +217,45 @@ package Presentation.World {
...
@@ -217,15 +217,45 @@ package Presentation.World {
Update(float): void
Update(float): void
}
}
class TowerData
extends ScriptableObject
{
class TowerData {
TowerSprite: Sprite
TowerSprite: Sprite
ShootingEffect: GameObject
ShootingEffect: GameObject
AmbientEffect: GameObject
AmbientEffect: GameObject
}
}
class Obstacle extends Building {
Start(): void
Update(float): void
}
class Barrack extends Building {
Start(): void
Update(float): void
}
class TileData {
Sprite: Sprite
AmbientEffect: GameObject
}
class BarrackData {
Sprite: Sprite
AmbientEffect: GameObject
SpawnEffect: GameObject
}
class ObstacleData {
Sprite: Sprite
AmbientEffect: GameObject
}
Obstacle o-- ObstacleData
Barrack o-- BarrackData
Unit o-- UnitData
Unit o-- UnitData
World o-- Tile
World o-- Tile
Tile o-- TileData
Tile o-- Building
Tile o-- Building
World o-- Unit
World o-- Unit
...
...
...
...