Table of Contents

Class ColonizeCommand

Namespace
StarterKit.Commands
Assembly
StarterKit.dll

StarterKit command: Colonize an unowned province. Deducts gold and sets province ownership. Used by player UI and AI.

[Command("colonize", Description = "Colonize an unowned province", Examples = new string[] { "colonize 123" })]
public class ColonizeCommand : SimpleCommand, ICommand
Inheritance
object
ColonizeCommand
Implements
Inherited Members

Fields

COLONIZE_COST

public const int COLONIZE_COST = 20

Field Value

int

Properties

CountryId

[Arg(1, "countryId")]
public ushort CountryId { get; set; }

Property Value

ushort

ProvinceId

[Arg(0, "provinceId")]
public ProvinceId ProvinceId { get; set; }

Property Value

ProvinceId

Methods

Execute(GameState)

Override to implement execution logic.

public override void Execute(GameState gameState)

Parameters

gameState GameState

Validate(GameState)

Override to implement validation logic.

public override bool Validate(GameState gameState)

Parameters

gameState GameState

Returns

bool