/// <param name="field">フィールド</param> public FieldInfo(Field field) { int width = field.Width; int height = field.Height; blocksInfo = new BlockInfo[width, height]; for (int z = 0; z < height; z++) { for (int x = 0; x < width; x++) { BlockInfo blockInfo = null; Block block = field.GetBlock(x, z); if (block != null) { blockInfo = block.Info; } blocksInfo[x, z] = blockInfo; } } }
/// <param name="attackManager">攻撃のマネージャー</param> /// <param name="field">ブロックのマネージャー</param> /// <param name="playerManager">プレイヤーのマネージャー</param> public ManagerSet(AttackManager attackManager, Field field, PlayerManager playerManager) { this.AttackManager = attackManager; this.Field = field; this.PlayerManager = playerManager; }