MGridMap< _T > 템플릿 클래스 템플릿 참조
#include <MGridMap.h>
MGridMap< _T >에 대한 상속 도표


세부 사항
template<class _T>
class MGridMap< _T >
x-y 그리드맵과 z는 리스트로 가지고 있는 클래스- 선언
- MGridMap<UserType>
- 오브젝트 추가/이동/삭제
- MGridMap<UserType>::HREF h = MGridMap<UserType>::Add(x, y, z, UserTypeObj);
- MGridMap<UserType>::Move(x, y, z, UserTypeObj, h);
- MGridMap<UserType>::Del(h);
public 메소드 | |
| void | Create (float fSX, float fSY, float fEX, float fEY, int nXDivision, int nYDivision) |
| 맵 생성 | |
| void | Destroy (void) |
| 해제. | |
| HREF | Add (float x, float y, float z, _T Obj) |
| 참조 셀에 추가. | |
| void | Del (HREF hRef) |
| 참조 셀 삭제. | |
| void | Get (list< _T > *pObjs, float x, float y, float z, float fRadius) |
| 해당 영역에 Obj리스트 얻기, Obj리스트는 가까운순으로 소트되어 있지 않다. | |
| HREF | Move (float x, float y, float z, _T Obj, HREF &hRef) |
| Obj 이동에 따른 참조 셀의 이동. | |
| float | GetSX (void) const |
| 맵의 시작 X | |
| float | GetSY (void) const |
| 맵의 시작 Y | |
| float | GetEX (void) const |
| 맵의 끝 X | |
| float | GetEY (void) const |
| 맵의 끝 Y | |
| float | GetXSize (void) const |
| 맵의 X축 크기 | |
| float | GetYSize (void) const |
| 맵의 Y축 크기 | |
| int | GetXDivision (void) const |
| 맵의 X축 셀 갯수 | |
| int | GetYDivision (void) const |
| 맵의 Y축 셀 갯수 | |
| float | GetXDivisionSize (void) const |
| 맵의 X축 셀 크기 | |
| float | GetYDivisionSize (void) const |
| 맵의 Y축 셀 크기 | |
| MRefCell * | GetCell (int x, int y) |
| x, y 위치의 셀 정보 얻기 | |
| MRefCell * | GetCell (int i) |
| 인덱스로 셀 정보 얻기. | |
| int | GetCellCount (void) |
| 셀 갯수 얻기 | |
| void | ClearAllCell (void) |
| 모든 셀 초기화하기 | |
protected 메소드 | |
| MRefCell * | GetCell (float x, float y) |
protected 속성 | |
| MRefCell * | m_pGridMap |
| 그리드맵 | |
| float | m_fSX |
| 맵의 X축 시작점 | |
| float | m_fSY |
| 맵의 Y축 시작점 | |
| float | m_fEX |
| 맵의 X축 끝점 | |
| float | m_fEY |
| 맵의 Y축 끝점 | |
| int | m_nXDivision |
| 맵의 X축 셀 갯수 | |
| int | m_nYDivision |
| 맵의 Y축 셀 갯수 | |
클래스 | |
| struct | HREF |
| User Data Object에서 가지고 있을 레퍼런스의 핸들. 세부 사항 보기 | |
| struct | MITEM |
| 내부에서 관리하기위한 위치정보와 UserData 세부 사항 보기 | |
| class | MRefCell |
| x-y평면에 놓여지는 하나의 참조 셀 세부 사항 보기 | |
멤버 함수 문서화
|
||||||||||||||||||||||||
|
참조 셀에 추가.
|
|
||||||||||||||||||||||||||||||||
|
맵 생성
|
이 클래스을 위한 문서화는 다음의 파일로부터 생성되었습니다.
MAIET entertainment