Newswire
Features
Connection
Job Search
Directories

by Ian Wright and James Marshall
Gamasutra
June 19, 2000

Printer Friendly Version
   
Discuss this Article

Features

More AI in Less Processor Time: 'Egocentric' AI

Listing 1. Process Manager Execution

// scheduling
determine active agents this frame
calculate time allocation for each active agent

// execution
for each active agent on list

    // execute perception set
    determine active perception methods this frame
    execute active perception methods

    // scheduling
    determine active behavioursets this frame
    calculate time allocation for each active behaviourset

    // execution
    for each active behaviourset on list
        if behaviourset was terminated on last execution
            if behaviourset is suspendable
                restart behaviourset execution
            else if behaviourset is sliceable
                continue behaviourset execution
            end if
        else
                run behaviourset
        end if

        check time
        if no time remaining exit behaviourset execution
    end for

    // execution action set
    determine active action methods this frame
    execute active action methods

    check time
    if no time remaining exit PM
end for

________________________________________________________

Back to Article

Home   JoinHelpContact UsShop
 


Home | Join | Help | Contact Us | Shop | Newswire | Site Map
Write for Us | Features | Connection | Job Search | Directories


Copyright © 1999-2000 Miller Freeman Inc. All rights reserved.
Privacy Policy

Miller Freeman Game Group: GDC, GDMag, IGF Independent Games Festival Game Developer Magazine Game Developers Conference