C# Class MPS.Netwerk

Afficher le fichier Open project: iosys/mps

Méthodes publiques

Méthode Description
AddComputer ( ApparaatType type, int firewall, int antivirus, Vector2 positie ) : void
AddMalware ( string naam, int firewall, int antivirus ) : void
AddNetwerkApparaat ( ApparaatType type, Vector2 positie ) : void
KanVerbinden ( Apparaat a1, Apparaat a2 ) : bool

Controleer of twee apparaten verbonden kunnen worden.

RemoveApparaat ( Apparaat app ) : void
Test ( ) : void

Reset en laad wat apparaten om te testen.

Update ( GameTime gameTime ) : void
Verbind ( Apparaat a1, Apparaat a2 ) : void

Verbind twee apparaten indien mogelijk.

VerbreekVerbinding ( Apparaat app ) : void

Verbreekt de verbinding met zijn ouder.

Private Methods

Méthode Description
Netwerk ( ) : System.Collections.Generic

Method Details

AddComputer() public static méthode

public static AddComputer ( ApparaatType type, int firewall, int antivirus, Vector2 positie ) : void
type ApparaatType
firewall int
antivirus int
positie Microsoft.Xna.Framework.Vector2
Résultat void

AddMalware() public static méthode

public static AddMalware ( string naam, int firewall, int antivirus ) : void
naam string
firewall int
antivirus int
Résultat void

AddNetwerkApparaat() public static méthode

public static AddNetwerkApparaat ( ApparaatType type, Vector2 positie ) : void
type ApparaatType
positie Microsoft.Xna.Framework.Vector2
Résultat void

KanVerbinden() public static méthode

Controleer of twee apparaten verbonden kunnen worden.
public static KanVerbinden ( Apparaat a1, Apparaat a2 ) : bool
a1 Apparaat Het kind.
a2 Apparaat De ouder.
Résultat bool

RemoveApparaat() public static méthode

public static RemoveApparaat ( Apparaat app ) : void
app Apparaat
Résultat void

Test() public static méthode

Reset en laad wat apparaten om te testen.
public static Test ( ) : void
Résultat void

Update() public static méthode

public static Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Verbind() public static méthode

Verbind twee apparaten indien mogelijk.
public static Verbind ( Apparaat a1, Apparaat a2 ) : void
a1 Apparaat Het kind.
a2 Apparaat De ouder.
Résultat void

VerbreekVerbinding() public static méthode

Verbreekt de verbinding met zijn ouder.
public static VerbreekVerbinding ( Apparaat app ) : void
app Apparaat
Résultat void