public sAttackInfo(eAttackRangeType rangeType, int attackRange, int attackPoint) { attackRangeType = rangeType; this.attackRange = attackRange; this.attackPoint = attackPoint; }
public List <TileCell> GetTilecellInAttackRange(TileCell startCell, eDirection direction, eAttackRangeType rangeType, int range) { List <TileCell> tileCells = new List <TileCell>(); tileCells.Add(startCell); //캐릭터가 밟고있는 셀을 넣어준다. sTilePosition tilePos = startCell.GetTilePosition(); //STRAIGHT for (int i = 0; i < range; i++) { TileHelper.GetNextTilePosByDirection(direction, ref tilePos); TileCell tilecell = GetTileCell(tilePos.tileX, tilePos.tileY); if (null != tilecell) { tileCells.Add(tilecell); } } return(tileCells); }