Skip to content

Instantly share code, notes, and snippets.

@brandonjank
Last active December 9, 2015 07:25
Show Gist options
  • Save brandonjank/ca67300ff7bc26fe4d8a to your computer and use it in GitHub Desktop.
Save brandonjank/ca67300ff7bc26fe4d8a to your computer and use it in GitHub Desktop.
class Submenu()
end
class "Main Menu"()
method newGame()
end
method closeGame()
end
method joinGame()
end
method loadGame()
end
end
class Buttons()
method accessMenuOptions()
end
end
class "New Game Menu"()
method selectRace()
end
method selectClass()
end
method selectMode()
end
end
class "Game State"()
end
class "Save File"()
method save()
end
method load()
end
end
@startuml
title State Subsystem Class Diagram
legend left
Authored: Lady Galadriel, Celeborn Consort
Reviewed: <i>none</i>
External Classes:
Definitions:
<i>Accesses</i> - Class A <i>accesses</i> class B when class A calls
a method of class B's
requesting read-write access.
<i>Commands</i> - Class A <i>changes</i> class B when class A
changes information stored
in class B.
endlegend
class Buttons {
+ accessMenuOptions()
}
class "Main Menu" {
+ closeGame()
+ newGame()
+ loadGame()
+ joinGame()
}
class Submenu {
}
class "Save File" {
+ save()
+ load()
}
class "New Game Menu" {
+ selectClass()
+ selectRace()
+ selectMode()
}
class "Game State" {
}
Buttons -up-* "Main Menu"
Buttons -up-* "Submenu"
Buttons -up-* "New Game Menu"
"Main Menu" <|-left- "Submenu"
"Main Menu" <|-right- "New Game Menu"
Submenu "Accesses" -down- "Save File"
"Save File" "Changes" -down- "Game State"
"New Game Menu" "Changes" -down- "Game State"
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment