Archived
Prueba de renderizado de MD con PlantUML.
Aunque Gitea no pueda, es posible que github sí. Pero si ambos pueden, mejor.
This commit is contained in:
+117
@@ -0,0 +1,117 @@
|
|||||||
|
# BackEnd UML - Class Diagram
|
||||||
|
|
||||||
|
Es, principalmente, para probar si Gitea renderiza correctamente archivos MD con código de PlantUML integrado.
|
||||||
|
|
||||||
|
```plantuml
|
||||||
|
@startuml
|
||||||
|
class uberelectron.gameSystems.LoginData {
|
||||||
|
~ String nickname
|
||||||
|
~ String password
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.SaveLoader {
|
||||||
|
+ {static} Save LoadFromJSON(FileHandle)
|
||||||
|
+ {static} void SaveToJSON(Save,FileHandle)
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.GameManager {
|
||||||
|
+ {static} MachineLoader mcLoader
|
||||||
|
+ {static} RoomLoader rmLoader
|
||||||
|
+ {static} Save saveData
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.TileSetManager {
|
||||||
|
~ HashMap<String,TiledMapTileSet> tileSetsMap
|
||||||
|
+ boolean loadTileSet(String,String,int,int)
|
||||||
|
+ TiledMapTileSet GetTileSet(String)
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.RoomLoader {
|
||||||
|
~ Room currentRoom
|
||||||
|
~ HashMap<String,Room> loadedRooms
|
||||||
|
~ MachineLoader mcLoader
|
||||||
|
~ Json loaderJson
|
||||||
|
~ Json.Serializer<Room> roomSerializer
|
||||||
|
+ void LoadRoomFromJSON(FileHandle)
|
||||||
|
+ void SaveRoomToJSON(String,FileHandle)
|
||||||
|
+ void UnloadRoom(String)
|
||||||
|
+ boolean isRoomLoader(String)
|
||||||
|
+ void SetCurrentRoom(String)
|
||||||
|
+ Room GetCurrentRoom()
|
||||||
|
+ void AddRoom(Room)
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.MachineLoader {
|
||||||
|
- HashMap<String,Machine> machineMap
|
||||||
|
+ void LoadFromJSON(FileHandle)
|
||||||
|
+ void SaveToJSON(FileHandle)
|
||||||
|
+ void AddMachine(Machine)
|
||||||
|
+ Machine GetMachine(String)
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.Save {
|
||||||
|
~ int dinero
|
||||||
|
~ HashMap<String,Boolean> ownedRoom
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.Machine {
|
||||||
|
~ String machineID
|
||||||
|
+ HashMap<String,Integer> attributes
|
||||||
|
~ boolean esDeRecursos
|
||||||
|
~ String tileSetID
|
||||||
|
~ int tilePos
|
||||||
|
+ String getMachineID()
|
||||||
|
+ void setMachineID(String)
|
||||||
|
+ boolean isEsDeRecursos()
|
||||||
|
+ void setEsDeRecursos(boolean)
|
||||||
|
+ HashMap<String,Integer> getAttributes()
|
||||||
|
+ String getTileSetID()
|
||||||
|
+ void setTileSetID(String)
|
||||||
|
+ int getTilePos()
|
||||||
|
+ void setTilePos(int)
|
||||||
|
+ void AddAtribute(String,int)
|
||||||
|
+ void UpdateAtribute(String,int)
|
||||||
|
+ int GetAtributeValue(String)
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.LoginSystem {
|
||||||
|
- {static} boolean isLogged
|
||||||
|
+ {static} boolean AutentificarUsuario()
|
||||||
|
+ {static} boolean isIsLogged()
|
||||||
|
}
|
||||||
|
class uberelectron.gameSystems.Room {
|
||||||
|
~ String roomName
|
||||||
|
~ Vector2 roomSize
|
||||||
|
~ int espacioOcupado
|
||||||
|
~ int espacioTotal
|
||||||
|
~ HashMap<String,Integer> recursosOcupados
|
||||||
|
~ HashMap<String,Integer> recursosMaximos
|
||||||
|
~ HashMap<String,Integer> recursosDefecto
|
||||||
|
~ String tileSetID
|
||||||
|
~ int[][] bgData
|
||||||
|
~ Machine[][] machineData
|
||||||
|
~ boolean esOnline
|
||||||
|
+ void AddMachine(int,int,Machine)
|
||||||
|
+ boolean ComprobarCapacidadRecurso(String,int)
|
||||||
|
+ boolean ComprobarRecursos(Machine)
|
||||||
|
+ boolean ComprobarPosicion(int,int)
|
||||||
|
+ boolean ComprobarMaquina(Machine,int,int)
|
||||||
|
+ boolean ModificarRecursoSala(String,int,boolean)
|
||||||
|
+ void MoverMaquina(int,int,int,int)
|
||||||
|
+ void EliminarMaquina(int,int)
|
||||||
|
+ String getRoomName()
|
||||||
|
+ Vector2 getRoomSize()
|
||||||
|
+ int getEspacioOcupado()
|
||||||
|
+ int getEspacioTotal()
|
||||||
|
+ String getTileSetID()
|
||||||
|
+ int[][] getBgData()
|
||||||
|
+ Machine[][] getMachineData()
|
||||||
|
+ boolean isEsOnline()
|
||||||
|
|
||||||
|
}
|
||||||
|
uberelectron.gameSystems.MachineLoader --* uberelectron.gameSystems.Machine
|
||||||
|
uberelectron.gameSystems.RoomLoader --* uberelectron.gameSystems.Room
|
||||||
|
uberelectron.gameSystems.Room --* uberelectron.gameSystems.Machine
|
||||||
|
uberelectron.gameSystems.RoomLoader --> uberelectron.gameSystems.MachineLoader
|
||||||
|
|
||||||
|
uberelectron.gameSystems.SaveLoader --> uberelectron.gameSystems.Save
|
||||||
|
uberelectron.gameSystems.LoginSystem --> uberelectron.gameSystems.LoginData
|
||||||
|
|
||||||
|
uberelectron.gameSystems.GameManager --* uberelectron.gameSystems.RoomLoader
|
||||||
|
uberelectron.gameSystems.GameManager --* uberelectron.gameSystems.MachineLoader
|
||||||
|
uberelectron.gameSystems.GameManager --* uberelectron.gameSystems.SaveLoader
|
||||||
|
uberelectron.gameSystems.GameManager --* uberelectron.gameSystems.LoginSystem
|
||||||
|
@enduml
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user