Skip to content

Commit

Permalink
Merge pull request #149 from fwcd/capitalize-directories
Browse files Browse the repository at this point in the history
Capitalize all source directories
  • Loading branch information
fwcd authored Feb 14, 2024
2 parents 683f3f1 + 5bc6caa commit f2167f3
Show file tree
Hide file tree
Showing 863 changed files with 23 additions and 23 deletions.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class HugCommand: Command {
.listen {
do {
let image = try CairoImage(pngData: $0.get())
let rawTemplate = try CairoImage(pngFilePath: "Resources/fun/hugTemplate.png")
let rawTemplate = try CairoImage(pngFilePath: "Resources/Fun/hugTemplate.png")
let green = Color(rgb: 0x00FF03)
let (topLeft, bottomRight) = findBoundingBox(in: rawTemplate) { $0.squaredEuclideanDistance(to: green) < 0.01 }
let template = try colorToAlpha(in: rawTemplate, color: green, squaredThreshold: 0.6)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class PatCommand: Command {
return
}

let patHand = try CairoImage(pngFilePath: "Resources/fun/patHand.png")
let patHand = try CairoImage(pngFilePath: "Resources/Fun/patHand.png")
let avatarImage = try CairoImage(pngData: data)
let width = avatarImage.width
let height = avatarImage.height
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Utils
public struct Bishop: ChessPiece {
public let pieceType: ChessPieceType = .bishop
public let notationLetters: [Character] = ["B", "L"]
public let blackResourcePng: String = "Resources/chess/blackBishop.png"
public let whiteResourcePng: String = "Resources/chess/whiteBishop.png"
public let blackResourcePng: String = "Resources/Chess/blackBishop.png"
public let whiteResourcePng: String = "Resources/Chess/whiteBishop.png"
public let value: Int = 3

public func possibleMoves(from position: Vec2<Int>, board: ChessBoardModel, role: ChessRole, moved: Bool, isInCheck: Bool) -> [ChessMove] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Utils
public struct King: ChessPiece {
public let pieceType: ChessPieceType = .king
public let notationLetters: [Character] = ["K"]
public let blackResourcePng: String = "Resources/chess/blackKing.png"
public let whiteResourcePng: String = "Resources/chess/whiteKing.png"
public let blackResourcePng: String = "Resources/Chess/blackKing.png"
public let whiteResourcePng: String = "Resources/Chess/whiteKing.png"
public let value: Int = 1000

public func possibleMoves(from position: Vec2<Int>, board: ChessBoardModel, role: ChessRole, moved: Bool, isInCheck: Bool) -> [ChessMove] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Utils
public struct Knight: ChessPiece {
public let pieceType: ChessPieceType = .knight
public let notationLetters: [Character] = ["N", "S"]
public let blackResourcePng: String = "Resources/chess/blackKnight.png"
public let whiteResourcePng: String = "Resources/chess/whiteKnight.png"
public let blackResourcePng: String = "Resources/Chess/blackKnight.png"
public let whiteResourcePng: String = "Resources/Chess/whiteKnight.png"
public let value: Int = 3

public func possibleMoves(from position: Vec2<Int>, board: ChessBoardModel, role: ChessRole, moved: Bool, isInCheck: Bool) -> [ChessMove] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Utils
public struct Pawn: ChessPiece {
public let pieceType: ChessPieceType = .pawn
public let notationLetters: [Character] = []
public let blackResourcePng: String = "Resources/chess/blackPawn.png"
public let whiteResourcePng: String = "Resources/chess/whitePawn.png"
public let blackResourcePng: String = "Resources/Chess/blackPawn.png"
public let whiteResourcePng: String = "Resources/Chess/whitePawn.png"
public let value: Int = 1

public func possibleMoves(from position: Vec2<Int>, board: ChessBoardModel, role: ChessRole, moved: Bool, isInCheck: Bool) -> [ChessMove] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Utils
public struct Queen: ChessPiece {
public let pieceType: ChessPieceType = .queen
public let notationLetters: [Character] = ["Q", "D"]
public let blackResourcePng: String = "Resources/chess/blackQueen.png"
public let whiteResourcePng: String = "Resources/chess/whiteQueen.png"
public let blackResourcePng: String = "Resources/Chess/blackQueen.png"
public let whiteResourcePng: String = "Resources/Chess/whiteQueen.png"
public let value: Int = 9

public func possibleMoves(from position: Vec2<Int>, board: ChessBoardModel, role: ChessRole, moved: Bool, isInCheck: Bool) -> [ChessMove] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Utils
public struct Rook: ChessPiece {
public let pieceType: ChessPieceType = .rook
public let notationLetters: [Character] = ["R", "T"]
public let blackResourcePng: String = "Resources/chess/blackRook.png"
public let whiteResourcePng: String = "Resources/chess/whiteRook.png"
public let blackResourcePng: String = "Resources/Chess/blackRook.png"
public let whiteResourcePng: String = "Resources/Chess/whiteRook.png"
public let value: Int = 5

public func possibleMoves(from position: Vec2<Int>, board: ChessBoardModel, role: ChessRole, moved: Bool, isInCheck: Bool) -> [ChessMove] {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ public enum UnoActionLabel: String, Hashable, CaseIterable {

public var resourcePngPath: String {
switch self {
case .skip: return "Resources/uno/skip.png"
case .reverse: return "Resources/uno/reverse.png"
case .drawTwo: return "Resources/uno/drawTwo.png"
case .wild: return "Resources/uno/wild.png"
case .wildDrawFour: return "Resources/uno/wildDrawFour.png"
case .skip: return "Resources/Uno/skip.png"
case .reverse: return "Resources/Uno/reverse.png"
case .drawTwo: return "Resources/Uno/drawTwo.png"
case .wild: return "Resources/Uno/wild.png"
case .wildDrawFour: return "Resources/Uno/wildDrawFour.png"
}
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class DemoGifCommand: VoidCommand {
let image = try CairoImage(width: width, height: height)
let graphics = CairoContext(image: image)
graphics.rotate(by: Double(angleIndex) * angle)
graphics.draw(image: try CairoImage(pngFilePath: "Resources/chess/whiteKnight.png"), at: Vec2(x: 100, y: 100))
graphics.draw(image: try CairoImage(pngFilePath: "Resources/Chess/whiteKnight.png"), at: Vec2(x: 100, y: 100))
graphics.draw(rect: Rectangle(fromX: 10, y: 10, width: 100, height: 100, rotation: Double(angleIndex) * angle, color: .blue))

gif.frames.append(.init(image: image, delayTime: 100))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public class DemoImageCommand: VoidCommand {
graphics.draw(line: LineSegment(fromX: 20, y: 20, toX: 50, y: 30))
graphics.draw(rect: Rectangle(fromX: 50, y: 50, width: 10, height: 35, color: .yellow))
graphics.draw(rect: Rectangle(fromX: 80, y: 90, width: 10, height: 35, isFilled: false))
graphics.draw(image: try CairoImage(pngFilePath: "Resources/chess/whiteKnight.png"), at: Vec2(x: 20, y: 20))
graphics.draw(image: try CairoImage(pngFilePath: "Resources/Chess/whiteKnight.png"), at: Vec2(x: 20, y: 20))
graphics.draw(rect: Rectangle(fromX: 150, y: 150, width: 120, height: 120))
graphics.draw(image: try CairoImage(pngFilePath: "Resources/chess/whiteQueen.png"), at: Vec2(x: 120, y: 10), withSize: Vec2(x: 100, y: 100))
graphics.draw(image: try CairoImage(pngFilePath: "Resources/Chess/whiteQueen.png"), at: Vec2(x: 120, y: 10), withSize: Vec2(x: 100, y: 100))
graphics.draw(text: Text("Test", at: Vec2(x: 0, y: 15)))
graphics.draw(ellipse: Ellipse(centerX: 150, y: 80, radiusX: 40, y: 60, color: .magenta, isFilled: false))
graphics.draw(ellipse: Ellipse(centerX: 120, y: 50, radius: 40, color: .green))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f2167f3

Please sign in to comment.