FindPath.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:17k
- //
- //矪瞶隔畖场だ
- //
- #include "stdafx.h"
- #include "XMudClient.h"
- #include "3DFunction.h"
- #include "D3DRMScreen.h"
- #include "MenuCreateNew.h"
- #include "MapInfo.h"
- #include "MainScreen.h"
- #include "CommandCheck.h"
- #include "InitInternet.h"
- extern CRITICAL_SECTION csMaplist;
- extern CList <CPlayerInfo*,CPlayerInfo*> playerlist;
- extern CPlayerInfo * lpPlayerInfo;
- extern CList <animationCallbackArgs *, animationCallbackArgs *> animationlist;
- extern animationCallbackArgs *cb;
- extern CList <CMapInfo *, CMapInfo *> maplist;
- extern CMainScreen m_MainScreen;
- extern LPDIRECT3DRM3 g_lpD3DRM;
- extern rmfullglobals myglobs;
- extern LPDIRECT3DRMFRAME3 g_lpplayer;
- extern int g_playerState;
- extern CString g_sPlayerName;
- extern BOOL g_GetSameMove;
- //
- //ChangePath() Foundation
- //
- BOOL ChangePath(D3DVECTOR aimPosite,LPDIRECT3DRMFRAME3 roomFrame3,int iIndex)
- {
- D3DVECTOR *path;
- D3DVECTOR playerpos;
- float xpos,ypos,steplength;
- float yposabs,xposabs;
- float ftmppath;
- char tmpchar[20];
- CString strpath;
- int i,j,iNumStep;
- g_playerState = STOP;
- lpPlayerInfo = playerlist.GetHead();
- if(lpPlayerInfo->m_iSTATUS == AOS_facesb)
- {
- CString sLeaveSome;
- sLeaveSome.Format("%s