Thanks linkman2004! I've started getting my hands dirty and have a few questions I thought I'd post out here.
Question 1: MFC Link Error
I followed the steps on that thread about getting the ATL and MFC requirements to work using VS 2008 Express. It's working great and I can compile the template and some of the behaviours. However, for one of the main behaviours I'm trying to disect (8 Dir Movement), I'm receiving the error:
LINK : fatal error LNK1104: cannot open file 'mfc42.lib'
Any thoughts on how to get this reference working?
Question 2: Referencing an external object from inside the behavior code
I'm attempting to write a series of behaviors for the different enemies I have in my game. For example, for some enemies, I'd like them to attack the player object if the player comes within 100px of them (very simple behavior. The 100px parameter will probably be something the designers sets in the Constructor interface). I'm curious how I can reference the player object from within the behavior C++ code that I've applied on my enemy sprite. There will always be only 1 player object (named "Player"). I'm familiar in the past using AS3 to do something such as "if(object is of class Player){ //then do something}" But I'm not sure where to start.
This is of course all very easy to script using the event sheet, however I don't want to have to copy this block of event sheet code onto all of my different layout "levels". And if I make a change to the behavior, I'd like to only make that change in 1 place and then it updates onto all the enemies in all of the levels where I have applied this behavior.
Thank you!