modified uml
This commit is contained in:
22
uml/main.wsd
22
uml/main.wsd
@@ -1,11 +1,11 @@
|
||||
@startuml
|
||||
@startuml GameEngine
|
||||
package Game {
|
||||
class Game {
|
||||
+ name: String
|
||||
+ levels[]: Level
|
||||
+ currentLevel: Level
|
||||
|
||||
+ changeLevel(Level lvl)
|
||||
+ gameJSON: String
|
||||
+ SetLevel(Level lvl)
|
||||
}
|
||||
class Level {
|
||||
+ name: String
|
||||
@@ -14,6 +14,22 @@ package Game {
|
||||
+ start()
|
||||
+ draw()
|
||||
+ update()
|
||||
+ destroy(int id)
|
||||
}
|
||||
|
||||
class GameObject {
|
||||
+ id: int
|
||||
+ x: double
|
||||
+ y: double
|
||||
+ width: double
|
||||
+ height: double
|
||||
+ img: Image
|
||||
+ layer: int
|
||||
+ load()
|
||||
+ unload()
|
||||
+ start()
|
||||
+ draw()
|
||||
+ update()
|
||||
}
|
||||
}
|
||||
package Frontend {
|
||||
|
||||
Reference in New Issue
Block a user