// WMEventHandler.cpp: implementation of the WMEventHandler class.
//
//////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000 - 2002 Robert Cunnings. All rights reserved.
//
// You may copy, modify, distribute or publish this code free of charge.
//
// NO WARRANTY: This software is provided AS IS, without warranty of any kind.
//
//////////////////////////////////////////////////////////////////////
//
// WMEventHandler class - a class for finite state machine support.
// 
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "WMEventHandler.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

WMEventHandler::WMEventHandler()
{

}

WMEventHandler::~WMEventHandler()
{

}

int WMEventHandler::HandleEvent(int nActionIndex)
{
	ActFuncPtr fun = m_ActionFunctions[nActionIndex];
	return (this->*fun)();
}
