public CAffectedArea(int nSkillID, int dwOwnerId, TagPoint position, Point lt, Point rb, AffectedAreaType nAreaType) { this.nSkillID = nSkillID; this.dwOwnerId = dwOwnerId; rcArea = new TagRect(lt.X, lt.Y, rb.X, rb.Y); rcArea.OffsetRect(position, true); nType = nAreaType; }
/// <summary> /// Creates an affected area using the coordinates of the /// lt/rb points, offset by the position /// </summary> public CAffectedArea(int nSkillID, int dwOwnerId, TagPoint position, Point lt, Point rb, bool bLeft) { this.nSkillID = nSkillID; this.dwOwnerId = dwOwnerId; rcArea = new TagRect(lt.X, lt.Y, rb.X, rb.Y); rcArea.OffsetRect(position, bLeft); nType = AffectedAreaConstants.GetAreaType(nSkillID); }