C# Class OpenRA.Mods.Common.Traits.MissionObjectives

Inheritance: INotifyObjectivesUpdated, ISync, IResolveOrder
Show file Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
Info MissionObjectivesInfo
Objectives ReadOnlyList

Private Properties

Property Type Description
CheckIfGameIsOver void

Public Methods

Method Description
Add ( Player player, string description, ObjectiveType type = ObjectiveType.Primary, bool inhibitAnnouncement = false ) : int
ForceDefeat ( Player player ) : void
MarkCompleted ( Player player, int objectiveID ) : void
MarkFailed ( Player player, int objectiveID ) : void
MissionObjectives ( World world, MissionObjectivesInfo info ) : System
OnObjectiveAdded ( Player player, int id ) : void
OnObjectiveCompleted ( Player player, int id ) : void
OnObjectiveFailed ( Player player, int id ) : void
OnPlayerLost ( Player player ) : void
OnPlayerWon ( Player player ) : void
ResolveOrder ( Actor self, Order order ) : void

Private Methods

Method Description
CheckIfGameIsOver ( Player player ) : void

Method Details

Add() public method

public Add ( Player player, string description, ObjectiveType type = ObjectiveType.Primary, bool inhibitAnnouncement = false ) : int
player Player
description string
type ObjectiveType
inhibitAnnouncement bool
return int

ForceDefeat() public method

public ForceDefeat ( Player player ) : void
player Player
return void

MarkCompleted() public method

public MarkCompleted ( Player player, int objectiveID ) : void
player Player
objectiveID int
return void

MarkFailed() public method

public MarkFailed ( Player player, int objectiveID ) : void
player Player
objectiveID int
return void

MissionObjectives() public method

public MissionObjectives ( World world, MissionObjectivesInfo info ) : System
world World
info MissionObjectivesInfo
return System

OnObjectiveAdded() public method

public OnObjectiveAdded ( Player player, int id ) : void
player Player
id int
return void

OnObjectiveCompleted() public method

public OnObjectiveCompleted ( Player player, int id ) : void
player Player
id int
return void

OnObjectiveFailed() public method

public OnObjectiveFailed ( Player player, int id ) : void
player Player
id int
return void

OnPlayerLost() public method

public OnPlayerLost ( Player player ) : void
player Player
return void

OnPlayerWon() public method

public OnPlayerWon ( Player player ) : void
player Player
return void

ResolveOrder() public method

public ResolveOrder ( Actor self, Order order ) : void
self Actor
order Order
return void

Property Details

Info public property

public MissionObjectivesInfo,OpenRA.Mods.Common.Traits Info
return MissionObjectivesInfo

Objectives public property

public ReadOnlyList Objectives
return ReadOnlyList