public Cf3MapObjectBase(f3MapObjectType eType) { m_bValid = true; m_eType = eType; m_X = 0; m_Y = 0; m_nCX = -1; m_nCY = -1; m_nID = m_nNextID++; m_pNext = null; m_CharaList.Add(this); // m_nScrollX = m_nScrollY = 1.0f; // 標準でスクロールに完全についてゆく }
public Cf3MapObjectIceBase(f3MapObjectType eType) : base(eType) { m_Graphic = CResourceManager.ResourceManager.Get(RID.RID_ICEFIRE); }
public IEnumerable <Cf3MapObjectBase> GetMapObjects(int x1, int y1, int x2, int y2, f3MapObjectType eType) { if (x1 < 0) { x1 = 0; } if (y1 < 0) { y1 = 0; } if (x2 >= m_Width[1]) { x2 = m_Width[1] - 1; } if (y2 >= m_Height[1]) { y2 = m_Height[1] - 1; } m_NearObject.Clear(); Cf3MapObjectBase o; for (int x = x1; x <= x2; x++) { for (int y = y1; y <= y2; y++) { o = m_pObject[GetIndex(x, y)]; while (o != null) { if (o.GetMapObjectType() == eType && o.IsValid()) { m_NearObject.Add(o); } o = o.m_pNext; } } } return(m_NearObject); }
public Cf3MapObjectMain(f3MapObjectType eType) : base(eType) { }