CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TOperation

Unit

Models

Declaration

type TOperation = class

Description

Auto-inverse operation class

Fields

 NameDescription
PublicFlagsFlag set

Methods

Overview

Publicprocedure Apply;
Protectedprocedure DoApply; virtual; abstract;
Protectedfunction DoMerge(AOperation: TOperation): Boolean; virtual;
Publicfunction Merge(AOperation: TOperation): Boolean;

Description

Publicprocedure Apply;

Applies the operation. Repeated call will undo the operation.

Protectedprocedure DoApply; virtual; abstract;

Should actually perform the operation. Repeated call should undo all changes made by previous call.

Protectedfunction DoMerge(AOperation: TOperation): Boolean; virtual;

Should try to merge the operations and undo information taking in account applied state

Publicfunction Merge(AOperation: TOperation): Boolean;

Adds to the operation actions of the given one if possible and returns True if success. Both operations should be in applied or both in unapplied state.

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com