CodeBase - Airlock Demo Object oriented state machine

Return to the CodeBase listing

Category: 3D

Version: 1.0

0
0

Information

Uploaded: 29th Apr 2009 02:23

Modified: 1st Jan 1970 01:00

Author:  Anonymous Coder

Summary

Airlock Demo is an example that utilizes object oriented programming techniques along with state machine dynamics to create autonomous behavior in game objects. In this case a airlock that will react to a player when he/she approaches.

Full Description

The airlock demo generates a fully functional airlock object that is state machine based and can be replicated all over the game. Each airlock object will react independently of each other. Once spawned the only function that needs to be called is the PROCESS_AIRLOCK(I) function which will determine if the player is in range and then determine which state to place the airlock in. The code could be modified for any type of autonomous behaviour for any type of character. An elevator, a escalator, bullets, bombs, trapdoors, HALO style gun caddys. The possibilities are endless.

Comments

No comments yet.