Tuesday, March 20, 2012

Nine(9) simple AI Types

//main computer down. This is F57.swf


Jaron said my game needed some sort of AI, so last night and early this
morning I put together 9 different AI types. They all use the same interface
and have the same base-class.
They shall all link together in a linked list.
The first item in the linked list will be a "root" node.
The root node may NOT be deleted.
If the "unlinkAndDie" function is called on the root note, it will
throw an error because it's variable "hasPrevious" will be false.
Cannot get rid of first object in chain because if we do we kill our entry
point to the linked list of enemies.

No comments:

Post a Comment