CAST II Game Engine

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

Class TRootItem

Unit

BaseClasses

Declaration

type TRootItem = class(TItem)

Description

Provides some item extraction methods

A hierarchy root item should be of this (or a descendant) class.

Hierarchy

TItem > TBaseItem

Methods

Overview

Publicconstructor Create(AManager: TItemsManager); override;
Publicfunction Extract(Condition: TExtractConditionFunc; out Items: TItems): Integer;
Publicfunction ExtractByClass(AClass: CItem; out Items: TItems): Integer;
Publicfunction ExtractByMask(Mask: TItemFlags; Hierarchical: Boolean; out Items: TItems): Integer;
Publicfunction GetItemByFullName(const AName: string): TItem;
Publicprocedure HandleMessage(const Msg: TMessage); override;

Description

Publicconstructor Create(AManager: TItemsManager); override;

 

Publicfunction Extract(Condition: TExtractConditionFunc; out Items: TItems): Integer;

Traverses through the items hierarchy and adds all items passing Condition to Items. Returns number of items in Items.

Publicfunction ExtractByClass(AClass: CItem; out Items: TItems): Integer;

Traverses through the items hierarchy and adds all items of the given class to Items. Returns number of items in Items.

Publicfunction ExtractByMask(Mask: TItemFlags; Hierarchical: Boolean; out Items: TItems): Integer;

Traverses through the items hierarchy and adds to Items all items which State contains all flags in Mask. If Hierarchical is True childs of non-matching items are not considered. Returns number of items in Items.

Publicfunction GetItemByFullName(const AName: string): TItem;

 

Publicprocedure HandleMessage(const Msg: TMessage); override;

 

Last modified: 26 Oct, 2008
Copyright (C) 2006-2008, casteng.com