Files
firestorm/Gameleap/code/mw4/Code/AI test/work.cpp
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

44 lines
695 B
C++

#pragma warning (disable:4786)
#include "ai test.hpp"
CPerson::CPerson (void)
{
m_Awareness = new AIAwareness (this);
m_Combat = new AICombat (this);
m_Converse = new AIConverse (this);
m_Comm = new AIComm (this);
m_Move = new AIMove (this);
}
CPerson::~CPerson (void)
{
}
void CPerson::SetDestination (int x,int y)
{
m_Move->SetDestination (x,y);
}
void CPerson::DoTick (void)
{
CRect arect;
Think (1);
arect.left = 0;
arect.top = 0;
arect.right = 514;
arect.bottom = 514;
InvalidateRect (g_MainWindow->Window (),&arect,false);
}
void DoTick (void)
{
int i;
DoPathTick ();
for (i=0;i<MAXPERSON;i++)
g_Person[i].DoTick ();
}