Class TCommand

Unit

Declaration

type TCommand = class(TObject)

Description

The base class for all commands. Defines some helpful functionality and the interface all commands must follow.

Warning
This is an "abstract" class and shouldn't be used directly, but instead through one of its subclasses

Hierarchy

Overview

Methods

Public constructor Create(amap: TMap);
Public procedure Execute(acommand: string); virtual; abstract;

Properties

Public property help: string read _help;

Description

Methods

Public constructor Create(amap: TMap);

Base constructor for a command.

Parameters
amap
The current map instance, used to gather all informations in one place.
Returns

A new instance of TCommand.

Public procedure Execute(acommand: string); virtual; abstract;

Procedure that executes the logic for the command.

Parameters
acommand
The command the user entered. Needed for specificating the command further.

Properties

Public property help: string read _help;

Read-only string-property that contains the help message.


Generated by PasDoc 0.16.0.