Skip to content
Snippets Groups Projects
Commit 4453cc43 authored by lukasWoyke's avatar lukasWoyke
Browse files

More comments

parent 2eb32244
No related branches found
No related tags found
2 merge requests!60Code cleanup lukas fix,!55Code cleanup lukas
......@@ -10,6 +10,7 @@ import SpriteKit
import GameplayKit
import MultipeerConnectivity
/// View Controller that manages the game scene in single play mode, as well as in mulitplayer mode.
class GameViewController: UIViewController, LocalTeamPlayDelegate {
var gamePlayMode: PlayMode? = nil
......
......@@ -296,3 +296,64 @@ extension Notification.Name {
static let gameResultReceived = Notification.Name(rawValue: "gameResultReceived")
static let dimissedInvitationBrowserClient = Notification.Name(rawValue: "dismissedInvitationClient")
}
/* ************************************************** Setup process in multiplayer mode ************************************************** */
//
//
// ┌────────────────────────────┐ ┌────────────────────────────┐
// │ Server │ │ Client │
// └────────────────────────────┘ └────────────────────────────┘
// │ ┌────────────────────┐ │
// │ │ Send Invitation │ │
// ├──────────────────┴────────────────────┴────────────────▶│
// │ ┌────────────────────┐ │
// │ │ Accept invitation │ │
// │◀─────────────────┴────────────────────┴─────────────────┼─
// ┌──────────────┤ │
// │ Wait for all │ │
// │ clients │ ┌────────────────────┐ │
// └──────────────┤ │ send Invitation │ │
// ├──────────────────┴────────────────────┴────────────────▶│
// │ ┌────────────────────────────┐ │
// │ │ Send clients customization │ │
// │◀─────────────┴────────────────────────────┴─────────────┤
// │ ┌────────────────────────────┐ │
// │ │ Send selected level │ │
// ├──────────────┴────────────────────────────┴────────────▶│
// │ ┌────────────────────────────┐ │
// │ │ Confirm level │ │
// │◀─────────────┴────────────────────────────┴─────────────│
// ┌──────────────┤ │
// │ Wait for all │ │
// │ clients │ ┌────────────────────────────┐ │
// └──────────────┤ │ Send player info │ │
// ├──────────────┴────────────────────────────┴────────────▶│
// │ ┌────────────────────────────┐ │
// │ │ Confirm info │ │
// │◀─────────────┴────────────────────────────┴─────────────┤
// ┌──────────────┤ │
// │ Wait for all │ │
// │ clients │ ┌────────────────────────────┐ │
// └──────────────┤ │ Send start game │ │
// ├──────────────┴────────────────────────────┴────────────▶│
// │ ┌────────────────────────────┐ │
// │ │ Send game scene loaded │ │
// │◀─────────────┴────────────────────────────┴─────────────┤
// ┌──────────────┤ │
// │ Wait for all │ │
// │ clients │ │
// └──────────────┤ ┌────────────────────────────┐ │
// │ │ Send game started │ │
// ├──────────────┴────────────────────────────┴────────────▶│
// │ │
// │ │
// │ │
// │ │
// │ │
// │ │
// │ │
// ▼ ▼
//
//
/* ********************************************************************************************************************************** */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment