Skip to content

Commit

Permalink
Merge 1f3a79b into 9289242
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysiek1507 authored May 16, 2019
2 parents 9289242 + 1f3a79b commit 5987aa3
Show file tree
Hide file tree
Showing 64 changed files with 128 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'
gemspec

Expand Down
2 changes: 2 additions & 0 deletions goby.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# coding: utf-8
# frozen_string_literal: true

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Expand Down
2 changes: 2 additions & 0 deletions lib/goby.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Import order matters.

require 'goby/scaffold'
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/battle/attack.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/battle/battle.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/battle/battle_command.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# Commands that are used in the battle system. At each turn,
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/battle/escape.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/battle/use.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/driver.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/entity/entity.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/entity/fighter.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/entity/monster.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/entity/player.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/event/chest.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/event/event.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# A Player can interact with these on the Map.
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/event/npc.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/event/shop.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/extension.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'set'

# Provides additional methods for Array.
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/item/equippable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# Provides methods for equipping & unequipping an Item.
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/item/food.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/item/helmet.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/item/item.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# Can be used by an Entity in order to trigger anything specified.
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/item/legs.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/item/shield.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/item/torso.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/item/weapon.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

module Goby
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/map/map.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# A 2D arrangement of Tiles. The Player can move around on it.
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/map/tile.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# Describes a single location on a Map. Can have Events and Monsters.
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/music.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# Methods for playing/stopping background music (BGM).
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/scaffold.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# Functions for scaffolding starter projects.
Expand Down
2 changes: 2 additions & 0 deletions lib/goby/util.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'readline'
require 'yaml'

Expand Down
2 changes: 2 additions & 0 deletions lib/goby/world_command.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Goby

# Functions that handle commands on the "world map."
Expand Down
2 changes: 2 additions & 0 deletions res/scaffold/simple/farm.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This is an example of how to create a Map. You can
# define the name, where to respawn, and the 2D display of
# the Map - each point is referred to as a Tile.
Expand Down
2 changes: 2 additions & 0 deletions res/scaffold/simple/main.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

include Goby
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/battle/attack_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Goby::Attack do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/battle/battle_command_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Goby::BattleCommand do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/battle/battle_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Goby::Battle do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/battle/escape_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Goby::Escape do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/battle/use_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Use do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/driver_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/entity/entity_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Entity do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/entity/fighter_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Fighter do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/entity/monster_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Monster do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/entity/player_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Player do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/event/chest_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Chest do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/event/event_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Event do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/event/npc_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe NPC do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/event/shop_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Shop do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/extension_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Array do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/item/equippable_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Equippable do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/item/food_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Food do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/item/helmet_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Helmet do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/item/item_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Item do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/item/legs_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Legs do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/item/shield_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Shield do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/item/torso_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Torso do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/item/weapon_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Weapon do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/map/map_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Map do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/map/tile_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Tile do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/music_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe Music do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/scaffold_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'
require 'fileutils'

Expand Down
2 changes: 2 additions & 0 deletions spec/goby/util_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe do
Expand Down
2 changes: 2 additions & 0 deletions spec/goby/world_command_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'goby'

RSpec.describe do
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause
Expand Down

0 comments on commit 5987aa3

Please sign in to comment.