struct Combat::MapData
- Combat::MapData
- ECS::Component
- Struct
- Value
- Object
Defined in:
mechanics/combat.crConstructors
Class Method Summary
Instance Method Summary
- #attacked : Array2D(Bool)
- #can_attack(who, target)
- #can_go(who : ECS::Entity, target, allow_jump = true)
- #clone
- #copy_with(size _size = @size, walls _walls = @walls, units _units = @units, loot _loot = @loot, attacked _attacked = @attacked, escape _escape = @escape, tiles _tiles = @tiles)
- #each_cell(&)
- #escape : Array2D(Bool)
- #iterate_lines(v, &)
- #loot : Array2D(ECS::Entity | Nil)
- #size : IntVector2
- #tiles : Array2D(MapTile)
- #units : Array2D(ECS::Entity | Nil)
- #walls : Array2D(Bool)
Constructor Detail
def self.new(size : IntVector2, walls : Array2D(Bool), units : Array2D(ECS::Entity | Nil), loot : Array2D(ECS::Entity | Nil), attacked : Array2D(Bool), escape : Array2D(Bool), tiles : Array2D(MapTile))
#
Class Method Detail
Instance Method Detail
def copy_with(size _size = @size, walls _walls = @walls, units _units = @units, loot _loot = @loot, attacked _attacked = @attacked, escape _escape = @escape, tiles _tiles = @tiles)
#