Module: GamesAndRpgParadise
- Included in:
- MagicTheGathering, Mud::Shell
- Defined in:
- lib/games_and_rpg_paradise/base/base.rb,
lib/games_and_rpg_paradise/rpg/dnd/dnd.rb,
lib/games_and_rpg_paradise/rpg/dsa/dsa.rb,
lib/games_and_rpg_paradise/sinatra/app.rb,
lib/games_and_rpg_paradise/base/colours.rb,
lib/games_and_rpg_paradise/constants/www.rb,
lib/games_and_rpg_paradise/mud/base/base.rb,
lib/games_and_rpg_paradise/mud/city/city.rb,
lib/games_and_rpg_paradise/mud/food/food.rb,
lib/games_and_rpg_paradise/mud/room/room.rb,
lib/games_and_rpg_paradise/sarlem/sarlem.rb,
lib/games_and_rpg_paradise/constants/misc.rb,
lib/games_and_rpg_paradise/lpc/geas/forum.rb,
lib/games_and_rpg_paradise/lpc/geas/paths.rb,
lib/games_and_rpg_paradise/colours/colours.rb,
lib/games_and_rpg_paradise/lpc/shell/shell.rb,
lib/games_and_rpg_paradise/mud/arena/arena.rb,
lib/games_and_rpg_paradise/mud/shell/shell.rb,
lib/games_and_rpg_paradise/mud/weapons/axe.rb,
lib/games_and_rpg_paradise/project/project.rb,
lib/games_and_rpg_paradise/version/version.rb,
lib/games_and_rpg_paradise/constants/sarlem.rb,
lib/games_and_rpg_paradise/mud/animals/bear.rb,
lib/games_and_rpg_paradise/mud/magic/spells.rb,
lib/games_and_rpg_paradise/mud/weapons/club.rb,
lib/games_and_rpg_paradise/mud/weapons/pike.rb,
lib/games_and_rpg_paradise/formulas/formulas.rb,
lib/games_and_rpg_paradise/games/chess/chess.rb,
lib/games_and_rpg_paradise/lpc/shared/shared.rb,
lib/games_and_rpg_paradise/mud/armour/armour.rb,
lib/games_and_rpg_paradise/mud/client/client.rb,
lib/games_and_rpg_paradise/mud/combat/combat.rb,
lib/games_and_rpg_paradise/mud/gender/gender.rb,
lib/games_and_rpg_paradise/mud/ghosts/ghosts.rb,
lib/games_and_rpg_paradise/mud/living/living.rb,
lib/games_and_rpg_paradise/mud/skills/skills.rb,
lib/games_and_rpg_paradise/mud/weapons/sabre.rb,
lib/games_and_rpg_paradise/mud/weapons/spear.rb,
lib/games_and_rpg_paradise/mud/weapons/sword.rb,
lib/games_and_rpg_paradise/games/godmode/time.rb,
lib/games_and_rpg_paradise/games/godmode/warn.rb,
lib/games_and_rpg_paradise/gui/gtk3/dice/dice.rb,
lib/games_and_rpg_paradise/mud/animals/animal.rb,
lib/games_and_rpg_paradise/mud/animals/badger.rb,
lib/games_and_rpg_paradise/mud/animals/parrot.rb,
lib/games_and_rpg_paradise/mud/weapons/dagger.rb,
lib/games_and_rpg_paradise/mud/weapons/hammer.rb,
lib/games_and_rpg_paradise/mud/weapons/weapon.rb,
lib/games_and_rpg_paradise/toplevel_methods/e.rb,
lib/games_and_rpg_paradise/constants/gamebooks.rb,
lib/games_and_rpg_paradise/gamebooks/character.rb,
lib/games_and_rpg_paradise/gamebooks/gamebooks.rb,
lib/games_and_rpg_paradise/games/godmode/quest.rb,
lib/games_and_rpg_paradise/games/mechwars/mech.rb,
lib/games_and_rpg_paradise/games/memory/memory.rb,
lib/games_and_rpg_paradise/gui/gtk3/block/ball.rb,
lib/games_and_rpg_paradise/gui/gtk3/block/wall.rb,
lib/games_and_rpg_paradise/lpc/project/project.rb,
lib/games_and_rpg_paradise/mud/adverbs/adverbs.rb,
lib/games_and_rpg_paradise/mud/animals/unicorn.rb,
lib/games_and_rpg_paradise/mud/project/project.rb,
lib/games_and_rpg_paradise/mud/trading/trading.rb,
lib/games_and_rpg_paradise/mud/weapons/weapons.rb,
lib/games_and_rpg_paradise/toplevel_methods/cd.rb,
lib/games_and_rpg_paradise/toplevel_methods/mv.rb,
lib/games_and_rpg_paradise/games/godmode/player.rb,
lib/games_and_rpg_paradise/games/mechwars/arena.rb,
lib/games_and_rpg_paradise/games/solitaire/card.rb,
lib/games_and_rpg_paradise/gui/gosu/books/input.rb,
lib/games_and_rpg_paradise/gui/gosu/memory/game.rb,
lib/games_and_rpg_paradise/gui/gtk3/block/block.rb,
lib/games_and_rpg_paradise/gui/gtk3/block/walls.rb,
lib/games_and_rpg_paradise/gui/gtk3/snake/snake.rb,
lib/games_and_rpg_paradise/mud/actions/juggling.rb,
lib/games_and_rpg_paradise/mud/encounters/ocean.rb,
lib/games_and_rpg_paradise/toplevel_methods/cat.rb,
lib/games_and_rpg_paradise/toplevel_methods/rds.rb,
lib/games_and_rpg_paradise/controller/controller.rb,
lib/games_and_rpg_paradise/games/antamar/antamar.rb,
lib/games_and_rpg_paradise/games/hangman/hangman.rb,
lib/games_and_rpg_paradise/games/sarlamar/player.rb,
lib/games_and_rpg_paradise/games/wesnoth/wesnoth.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/block.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/shape.rb,
lib/games_and_rpg_paradise/gui/gtk3/block/blocks.rb,
lib/games_and_rpg_paradise/gui/gtk3/block/paddle.rb,
lib/games_and_rpg_paradise/gui/gtk3/block/screen.rb,
lib/games_and_rpg_paradise/mud/armours/chainmail.rb,
lib/games_and_rpg_paradise/mud/can_talk/can_talk.rb,
lib/games_and_rpg_paradise/mud/humanoid/humanoid.rb,
lib/games_and_rpg_paradise/mud/monsters/monsters.rb,
lib/games_and_rpg_paradise/mud/movement/movement.rb,
lib/games_and_rpg_paradise/mud/objects/misc/rope.rb,
lib/games_and_rpg_paradise/mud/wearable/wearable.rb,
lib/games_and_rpg_paradise/rpg/dnd/combat/combat.rb,
lib/games_and_rpg_paradise/toplevel_methods/misc.rb,
lib/games_and_rpg_paradise/games/godmode/gameplay.rb,
lib/games_and_rpg_paradise/games/mechwars/vehicle.rb,
lib/games_and_rpg_paradise/games/solitaire/player.rb,
lib/games_and_rpg_paradise/gui/gosu/billiard/ball.rb,
lib/games_and_rpg_paradise/gui/gosu/sokoban/level.rb,
lib/games_and_rpg_paradise/gui/gtk3/memory/memory.rb,
lib/games_and_rpg_paradise/mud/objects/book/books.rb,
lib/games_and_rpg_paradise/mud/objects/doors/door.rb,
lib/games_and_rpg_paradise/mud/room/server/server.rb,
lib/games_and_rpg_paradise/mud/weapons/broadsword.rb,
lib/games_and_rpg_paradise/toplevel_methods/mkdir.rb,
lib/games_and_rpg_paradise/toplevel_methods/roebe.rb,
lib/games_and_rpg_paradise/base/extensions/colours.rb,
lib/games_and_rpg_paradise/commandline/commandline.rb,
lib/games_and_rpg_paradise/games/godmode/gladiator.rb,
lib/games_and_rpg_paradise/games/hangman/ascii_art.rb,
lib/games_and_rpg_paradise/games/nibbles/constants.rb,
lib/games_and_rpg_paradise/games/rubynuts/rubynuts.rb,
lib/games_and_rpg_paradise/games/sarlamar/dsa_hero.rb,
lib/games_and_rpg_paradise/gui/gosu/1010/game_1010.rb,
lib/games_and_rpg_paradise/gui/gosu/sokoban/zlevel.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/shape_i.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/shape_j.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/shape_l.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/shape_s.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/shape_t.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/shape_z.rb,
lib/games_and_rpg_paradise/lpc/constants/constants.rb,
lib/games_and_rpg_paradise/mud/armours/breastplate.rb,
lib/games_and_rpg_paradise/mud/character/character.rb,
lib/games_and_rpg_paradise/mud/constants/constants.rb,
lib/games_and_rpg_paradise/mud/container/container.rb,
lib/games_and_rpg_paradise/mud/continent/continent.rb,
lib/games_and_rpg_paradise/mud/hitpoints/hitpoints.rb,
lib/games_and_rpg_paradise/rpg/dnd/weapons/weapons.rb,
lib/games_and_rpg_paradise/rpg/shadowrun/shadowrun.rb,
lib/games_and_rpg_paradise/toplevel_methods/delete.rb,
lib/games_and_rpg_paradise/toplevel_methods/pngopt.rb,
lib/games_and_rpg_paradise/games/tetris/gtk3/tetris.rb,
lib/games_and_rpg_paradise/gui/gosu/chinguroids/gui.rb,
lib/games_and_rpg_paradise/gui/gosu/hangman/hangman.rb,
lib/games_and_rpg_paradise/gui/gosu/maze_puzzle/cli.rb,
lib/games_and_rpg_paradise/gui/gosu/sokoban/sokoban.rb,
lib/games_and_rpg_paradise/gui/gtk3/nibbles/nibbles.rb,
lib/games_and_rpg_paradise/gui/tk/gamebook/gamebook.rb,
lib/games_and_rpg_paradise/lpc/geas/forum_compacter.rb,
lib/games_and_rpg_paradise/lpc/geas/goblinoid_raids.rb,
lib/games_and_rpg_paradise/mud/armours/padded_tunic.rb,
lib/games_and_rpg_paradise/mud/economy/trade_routes.rb,
lib/games_and_rpg_paradise/roda/gamebooks/gamebooks.rb,
lib/games_and_rpg_paradise/toplevel_methods/convert.rb,
lib/games_and_rpg_paradise/toplevel_methods/esystem.rb,
lib/games_and_rpg_paradise/www/embeddable_interface.rb,
lib/games_and_rpg_paradise/games/pong/gtk/cairo_pong.rb,
lib/games_and_rpg_paradise/games/solitaire/constants.rb,
lib/games_and_rpg_paradise/games/solitaire/solitaire.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/fort.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/tank.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/wall.rb,
lib/games_and_rpg_paradise/gui/gosu/maze_puzzle/cell.rb,
lib/games_and_rpg_paradise/gui/gosu/maze_puzzle/maze.rb,
lib/games_and_rpg_paradise/gui/gosu/memory/constants.rb,
lib/games_and_rpg_paradise/gui/gosu/memory/play_game.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/constants.rb,
lib/games_and_rpg_paradise/gui/gosu/tic_tac_toe/game.rb,
lib/games_and_rpg_paradise/lpc/controller/controller.rb,
lib/games_and_rpg_paradise/mud/characters/characters.rb,
lib/games_and_rpg_paradise/mud/mud_object/mud_object.rb,
lib/games_and_rpg_paradise/mud/toplevel_methods/misc.rb,
lib/games_and_rpg_paradise/toplevel_methods/gamebook.rb,
lib/games_and_rpg_paradise/utility_scripts/dice/dice.rb,
lib/games_and_rpg_paradise/base/extensions/extensions.rb,
lib/games_and_rpg_paradise/colours/my_local_rpg_group.rb,
lib/games_and_rpg_paradise/games/might_and_magic/hero.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/brick.rb,
lib/games_and_rpg_paradise/gui/gosu/billiard/billiard.rb,
lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb,
lib/games_and_rpg_paradise/gui/gosu/books/makenewbook.rb,
lib/games_and_rpg_paradise/gui/gosu/maze_puzzle/infor.rb,
lib/games_and_rpg_paradise/gui/gosu/memory/game_ended.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/shape_cube.rb,
lib/games_and_rpg_paradise/gui/gosu/tic_tac_toe/board.rb,
lib/games_and_rpg_paradise/gui/gtk3/chess/chess_piece.rb,
lib/games_and_rpg_paradise/gui/gtk3/gamebook/gamebook.rb,
lib/games_and_rpg_paradise/lpc/geas/who_list_analyzer.rb,
lib/games_and_rpg_paradise/mud/rooms/misc/supply_room.rb,
lib/games_and_rpg_paradise/games/minesweeper/constants.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/cannon.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/player.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/window.rb,
lib/games_and_rpg_paradise/gui/gosu/billiard/constants.rb,
lib/games_and_rpg_paradise/gui/gosu/chinguroids/levels.rb,
lib/games_and_rpg_paradise/gui/gosu/chinguroids/zorder.rb,
lib/games_and_rpg_paradise/gui/gosu/final_fantasy/game.rb,
lib/games_and_rpg_paradise/gui/gosu/hangman/text_field.rb,
lib/games_and_rpg_paradise/gui/gosu/maze_puzzle/player.rb,
lib/games_and_rpg_paradise/gui/gosu/tetris/game_window.rb,
lib/games_and_rpg_paradise/gui/gosu/tic_tac_toe/square.rb,
lib/games_and_rpg_paradise/gui/jruby/gamebook/gamebook.rb,
lib/games_and_rpg_paradise/gui/libui/gamebook/gamebook.rb,
lib/games_and_rpg_paradise/gui/shared_code/memory/card.rb,
lib/games_and_rpg_paradise/lpc/utility_scripts/checker.rb,
lib/games_and_rpg_paradise/mud/admin_shell/admin_shell.rb,
lib/games_and_rpg_paradise/mud/settlements/towns/event.rb,
lib/games_and_rpg_paradise/rpg/dnd/character/character.rb,
lib/games_and_rpg_paradise/sinatra/gamebooks/gamebooks.rb,
lib/games_and_rpg_paradise/games/mastermind/gtk2/circle.rb,
lib/games_and_rpg_paradise/games/mastermind/gtk3/circle.rb,
lib/games_and_rpg_paradise/games/mechwars/world_credits.rb,
lib/games_and_rpg_paradise/gui/gosu/aero_exploder/enemy.rb,
lib/games_and_rpg_paradise/gui/gosu/chinguroids/objects.rb,
lib/games_and_rpg_paradise/gui/gosu/final_fantasy/chest.rb,
lib/games_and_rpg_paradise/gui/gosu/final_fantasy/mages.rb,
lib/games_and_rpg_paradise/gui/gosu/final_fantasy/snake.rb,
lib/games_and_rpg_paradise/gui/gtk3/solitaire/solitaire.rb,
lib/games_and_rpg_paradise/lpc/geas/character_exclusion.rb,
lib/games_and_rpg_paradise/mud/actions/fall_down_action.rb,
lib/games_and_rpg_paradise/mud/armours/camouflage_cloak.rb,
lib/games_and_rpg_paradise/mud/monsters/monster_factory.rb,
lib/games_and_rpg_paradise/mud/objects/doors/steel_door.rb,
lib/games_and_rpg_paradise/gamebooks/lone_wolf/character.rb,
lib/games_and_rpg_paradise/gamebooks/lone_wolf/lone_wolf.rb,
lib/games_and_rpg_paradise/games/flappy_bird/gosu/flappy.rb,
lib/games_and_rpg_paradise/games/minesweeper/grid_placer.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/game.rb,
lib/games_and_rpg_paradise/games/tic_tac_toe/tic_tac_toe.rb,
lib/games_and_rpg_paradise/gui/gosu/aero_exploder/cursor.rb,
lib/games_and_rpg_paradise/gui/gosu/final_fantasy/player.rb,
lib/games_and_rpg_paradise/gui/gosu/final_fantasy/screen.rb,
lib/games_and_rpg_paradise/gamebooks/lone_wolf/statistics.rb,
lib/games_and_rpg_paradise/games/fallout/web_related_code.rb,
lib/games_and_rpg_paradise/games/minesweeper/terminal/cli.rb,
lib/games_and_rpg_paradise/gui/gtk2/xmas_gifts/xmas_gifts.rb,
lib/games_and_rpg_paradise/gui/gtk3/nibbles/nibbles_board.rb,
lib/games_and_rpg_paradise/requires/require_the_mud_files.rb,
lib/games_and_rpg_paradise/constants/files_and_directories.rb,
lib/games_and_rpg_paradise/gamebooks/gamebook_yaml_section.rb,
lib/games_and_rpg_paradise/games/baldurs_gate/baldurs_gate.rb,
lib/games_and_rpg_paradise/games/might_and_magic/character.rb,
lib/games_and_rpg_paradise/games/minesweeper/terminal/game.rb,
lib/games_and_rpg_paradise/games/prototypes/gosu_prototype.rb,
lib/games_and_rpg_paradise/games/vier_gewinnt/vier_gewinnt.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/enemy_tank.rb,
lib/games_and_rpg_paradise/gui/gosu/battle_city/enemy_team.rb,
lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb,
lib/games_and_rpg_paradise/gui/gtk2/xmas_gifts/gift_button.rb,
lib/games_and_rpg_paradise/gui/gtk3/minesweeper/mine_field.rb,
lib/games_and_rpg_paradise/gui/gtk3/tic_tac_toe/game_board.rb,
lib/games_and_rpg_paradise/mud/rooms/villa/villa_rest_room.rb,
lib/games_and_rpg_paradise/mud/user_feedback/user_feedback.rb,
lib/games_and_rpg_paradise/rpg/dnd/skill_points_calculator.rb,
lib/games_and_rpg_paradise/gamebooks/generate_html_gamebook.rb,
lib/games_and_rpg_paradise/gamebooks/lone_wolf/combat_ratio.rb,
lib/games_and_rpg_paradise/games/kaiser/module_methods/misc.rb,
lib/games_and_rpg_paradise/games/mastermind/gtk2/mastermind.rb,
lib/games_and_rpg_paradise/games/mastermind/gtk3/mastermind.rb,
lib/games_and_rpg_paradise/games/might_and_magic/hero_types.rb,
lib/games_and_rpg_paradise/games/minesweeper/terminal/error.rb,
lib/games_and_rpg_paradise/games/minesweeper/terminal/field.rb,
lib/games_and_rpg_paradise/games/minesweeper/terminal/intro.rb,
lib/games_and_rpg_paradise/gui/gosu/chinguroids/chinguroids.rb,
lib/games_and_rpg_paradise/gui/gosu/final_fantasy/colliders.rb,
lib/games_and_rpg_paradise/gui/gosu/final_fantasy/mushrooms.rb,
lib/games_and_rpg_paradise/gui/gosu/particle_simulator/main.rb,
lib/games_and_rpg_paradise/gui/gosu/particle_simulator/prey.rb,
lib/games_and_rpg_paradise/gui/gtk3/minesweeper/smiley_face.rb,
lib/games_and_rpg_paradise/gui/gtk3/tic_tac_toe/tic_tac_toe.rb,
lib/games_and_rpg_paradise/mud/requires/require_the_animals.rb,
lib/games_and_rpg_paradise/mud/requires/require_the_armours.rb,
lib/games_and_rpg_paradise/mud/requires/require_the_weapons.rb,
lib/games_and_rpg_paradise/mud/settlements/towns/controller.rb,
lib/games_and_rpg_paradise/sarlem/graph_drawer/graph_drawer.rb,
lib/games_and_rpg_paradise/sarlem/the_eastern_realm/tai/tai.rb,
lib/games_and_rpg_paradise/base/extensions/common_extensions.rb,
lib/games_and_rpg_paradise/games/flappy_bird/ruby2d/graphics.rb,
lib/games_and_rpg_paradise/games/kaiser/module_methods/money.rb,
lib/games_and_rpg_paradise/mud/control_animal/control_animal.rb,
lib/games_and_rpg_paradise/mud/name_generator/name_generator.rb,
lib/games_and_rpg_paradise/mud/objects/weapons/durais_katana.rb,
lib/games_and_rpg_paradise/rpg/dnd/items/deck_of_many_things.rb,
lib/games_and_rpg_paradise/toplevel_methods/npc_related_code.rb,
lib/games_and_rpg_paradise/games/hello_world/gosu/hello_world.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/menu/menu.rb,
lib/games_and_rpg_paradise/gui/gosu/duck_hunt_calculator/duck.rb,
lib/games_and_rpg_paradise/gui/gosu/maze_puzzle/configuration.rb,
lib/games_and_rpg_paradise/gui/gosu/particle_simulator/entity.rb,
lib/games_and_rpg_paradise/gui/gosu/particle_simulator/hunter.rb,
lib/games_and_rpg_paradise/gui/gtk3/four_in_a_row/game_button.rb,
lib/games_and_rpg_paradise/gui/shared_code/snake/snake_module.rb,
lib/games_and_rpg_paradise/lpc/utility_scripts/knowledge_base.rb,
lib/games_and_rpg_paradise/lpc/utility_scripts/room_generator.rb,
lib/games_and_rpg_paradise/toplevel_methods/copy_related_code.rb,
lib/games_and_rpg_paradise/games/defender_of_the_crown/economy.rb,
lib/games_and_rpg_paradise/games/examples/gosu/moving_triangle.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/base/base.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/menu/menu.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/menu/menu.rb,
lib/games_and_rpg_paradise/gui/jruby/vier_gewinnt/vier_gewinnt.rb,
lib/games_and_rpg_paradise/lpc/utility_scripts/query_character.rb,
lib/games_and_rpg_paradise/games/kaiser/module_methods/language.rb,
lib/games_and_rpg_paradise/games/mastermind/gtk2/icon_and_label.rb,
lib/games_and_rpg_paradise/games/mastermind/gtk3/icon_and_label.rb,
lib/games_and_rpg_paradise/games/minesweeper/terminal/generator.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/arena/arena.rb,
lib/games_and_rpg_paradise/gui/gosu/aero_exploder/aero_exploder.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/level/star.rb,
lib/games_and_rpg_paradise/gui/gtk3/four_in_a_row/four_in_a_row.rb,
lib/games_and_rpg_paradise/gui/gtk3/sound_effects/sound_effects.rb,
lib/games_and_rpg_paradise/gui/shared_code/memory/memory_module.rb,
lib/games_and_rpg_paradise/base/extensions/commandline_arguments.rb,
lib/games_and_rpg_paradise/games/mastermind/gtk2/black_white_box.rb,
lib/games_and_rpg_paradise/games/mastermind/gtk3/black_white_box.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/game_window.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/level/apple.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/level/enemy.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/level/level.rb,
lib/games_and_rpg_paradise/gui/gtk3/might_and_magic/party_viewer.rb,
lib/games_and_rpg_paradise/gui/gtk3/minesweeper/minesweeper_game.rb,
lib/games_and_rpg_paradise/gui/jruby/mod_installer/mod_installer.rb,
lib/games_and_rpg_paradise/gui/universal_widgets/hangman/hangman.rb,
lib/games_and_rpg_paradise/games/mastermind/shared_code/constants.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/armour/armour.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/shared/shared.rb,
lib/games_and_rpg_paradise/gui/gosu/particle_simulator/smart_prey.rb,
lib/games_and_rpg_paradise/mud/objects/armours/falcon_breastplate.rb,
lib/games_and_rpg_paradise/sarlem/the_eastern_realm/tai/tai_names.rb,
lib/games_and_rpg_paradise/games/baldurs_gate/install_baldurs_gate.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/misc/opponents.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/player/player.rb,
lib/games_and_rpg_paradise/gui/universal_widgets/gamebook/gamebook.rb,
lib/games_and_rpg_paradise/gamebooks/create_empty_gamebook_skeleton.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/project/project.rb,
lib/games_and_rpg_paradise/gui/shared_code/gamebook/gamebook_module.rb,
lib/games_and_rpg_paradise/base/extensions/extensions_for_a_gamebook.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/project/project.rb,
lib/games_and_rpg_paradise/games/schiffe_versenken/schiffe_versenken.rb,
lib/games_and_rpg_paradise/mud/characters/character_creation_process.rb,
lib/games_and_rpg_paradise/games/asteroids_fighter/gui/gtk3/constants.rb,
lib/games_and_rpg_paradise/games/defender_of_the_crown/user_interface.rb,
lib/games_and_rpg_paradise/games/mastermind/shared_code/circle_module.rb,
lib/games_and_rpg_paradise/games/flappy_bird/ruby2d/graphics/game_over.rb,
lib/games_and_rpg_paradise/games/leisure_suit_larry/leisure_suit_larry.rb,
lib/games_and_rpg_paradise/games/tic_tac_toe/tic_tac_toe_with_AI/board.rb,
lib/games_and_rpg_paradise/sarlem/the_eastern_realm/tai/tai_random_npc.rb,
lib/games_and_rpg_paradise/utility_scripts/map_generator/map_generator.rb,
lib/games_and_rpg_paradise/gamebooks/lone_wolf/map_number_to_remote_URL.rb,
lib/games_and_rpg_paradise/games/flappy_bird/ruby2d/constants/constants.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/sort_cards.rb,
lib/games_and_rpg_paradise/games/minesweeper/terminal/default_decorator.rb,
lib/games_and_rpg_paradise/games/misc/gui/jruby/align_three/align_three.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/adventure/adventure.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/character/character.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/constants/constants.rb,
lib/games_and_rpg_paradise/games/tic_tac_toe/tic_tac_toe_with_AI/engine.rb,
lib/games_and_rpg_paradise/games/tic_tac_toe/tic_tac_toe_with_AI/player.rb,
lib/games_and_rpg_paradise/gamebooks/download_gamebook/download_gamebook.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/constants/constants.rb,
lib/games_and_rpg_paradise/games/minesweeper/terminal/default_randomiser.rb,
lib/games_and_rpg_paradise/games/tetris/shared_code/tetris/tetris_module.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/player/apple_player.rb,
lib/games_and_rpg_paradise/gui/shared_code/minesweeper/mine_field_module.rb,
lib/games_and_rpg_paradise/mud/worlds/sarlem/western_realm/limaal/limaal.rb,
lib/games_and_rpg_paradise/utility_scripts/char_generator/char_generator.rb,
lib/games_and_rpg_paradise/games/baldurs_gate/repackage_baldurs_gate_mods.rb,
lib/games_and_rpg_paradise/games/mastermind/shared_code/mastermind_module.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/stadtwache/stadtwache.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/user_input/user_input.rb,
lib/games_and_rpg_paradise/gui/shared_code/minesweeper/smiley_face_module.rb,
lib/games_and_rpg_paradise/games/antamar/convert_random_encounter_into_XML.rb,
lib/games_and_rpg_paradise/games/baldurs_gate/remove_non_english_languages.rb,
lib/games_and_rpg_paradise/gui/gosu/garden_hero/core/level/level_generator.rb,
lib/games_and_rpg_paradise/mud/worlds/sarlem/western_realm/sundaal/sundaal.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/post_office/post_office.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/waffenladen/waffenladen.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/zauberladen/zauberladen.rb,
lib/games_and_rpg_paradise/gui/gtk3/gamebook/lone_wolf/create_new_character.rb,
lib/games_and_rpg_paradise/gui/gtk3/magic_the_gathering/view_card/view_card.rb,
lib/games_and_rpg_paradise/gui/shared_code/vier_gewinnt/vier_gewinnt_module.rb,
lib/games_and_rpg_paradise/games/defender_of_the_crown/defender_of_the_crown.rb,
lib/games_and_rpg_paradise/gui/universal_widgets/baldurs_gate2/mod_installer.rb,
lib/games_and_rpg_paradise/constants/home_x_data_and_roebe_specific_constants.rb,
lib/games_and_rpg_paradise/games/mastermind/shared_code/icon_and_label_module.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/hall_of_fame/hall_of_fame.rb,
lib/games_and_rpg_paradise/gui/gosu/duck_hunt_calculator/duck_hunt_calculator.rb,
lib/games_and_rpg_paradise/gui/shared_code/four_in_a_row/four_in_a_row_module.rb,
lib/games_and_rpg_paradise/rpg/dsa/obtain_information_for_dsa_adventure_books.rb,
lib/games_and_rpg_paradise/utility_scripts/dosbox_wrapper/gtk3/dosbox_wrapper.rb,
lib/games_and_rpg_paradise/gamebooks/commandline_gamebook/commandline_gamebook.rb,
lib/games_and_rpg_paradise/games/flappy_bird/ruby2d/graphics/score/placeholder.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/obtain_price_from.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/parse_card_format.rb,
lib/games_and_rpg_paradise/games/mastermind/shared_code/black_white_box_module.rb,
lib/games_and_rpg_paradise/gui/shared_code/minesweeper/minesweeper_game_module.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb,
lib/games_and_rpg_paradise/gui/universal_widgets/simple_gamebook/simple_gamebook.rb,
lib/games_and_rpg_paradise/toplevel_methods/ensure_that_the_log_directory_exists.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/download_single_card.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/parse_multiple_cards.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/module_methods/module_methods.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/store_card_information.rb,
lib/games_and_rpg_paradise/mud/worlds/sarlem/eastern_realm/tai/pingrim/western_gate.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/download_from_spielraum.rb,
lib/games_and_rpg_paradise/utility_scripts/create_games_webpage/create_games_webpage.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/search_for_this_magic_card.rb,
lib/games_and_rpg_paradise/gui/gtk3/magic_the_gathering/card_collection/card_collection.rb,
lib/games_and_rpg_paradise/games/shakes_and_fidgets/module_methods/files_and_directories.rb,
lib/games_and_rpg_paradise/gui/libui/magic_the_gathering/card_collection/card_collection.rb,
lib/games_and_rpg_paradise/gui/gtk3/magic_the_gathering/card_collection/information_widget.rb,
lib/games_and_rpg_paradise/utility_scripts/dosbox_wrapper/shared_code/dosbox_wrapper_module.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/add_n_lands_to_these_n_non_lands.rb,
lib/games_and_rpg_paradise/mud/worlds/sarlem/eastern_realm/tai/pingrim/karoshi_cemetary/entrance.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/download_cards_from_gatherer_wizards_com.rb,
lib/games_and_rpg_paradise/gui/shared_code/magic_the_gathering/card_collection/card_collection_module.rb,
lib/games_and_rpg_paradise/games/magic_the_gathering/classes/show_price_information_from_magickartenmarkt.rb,
lib/games_and_rpg_paradise/gui/gtk3/magic_the_gathering/search_for_this_magic_card/search_for_this_magic_card.rb,
lib/games_and_rpg_paradise/gui/gtk3/magic_the_gathering/card_collection/button_containing_information_about_a_single_card.rb
Overview
#
GamesAndRpgParadise::GUI::MagicTheGathering::CardCollectionModule
#
require ‘games_and_rpg_paradise/gui/shared_code/magic_the_gathering/card_collection/card_collection_module.rb’ include GamesAndRpgParadise::GUI::MagicTheGathering::CardCollectionModule
#
Defined Under Namespace
Modules: Antamar, BaldursGate, BattleCity, Billiard, Chess, Colors, Colours, CommonExtensions, DSA, DefenderOfTheCrown, Directions_7, DnD, EmbeddableInterface, Fallout, FlappyBird, Formulas, GUI, Gamebook, Gamebooks, GardenHero, Godmode, Gtk, Input, Kaiser, LeisureSuitLarry, Library, LocalRpgGroup, Lpc, MUD, MagicTheGathering, MazePuzzle, Mechwars, Memory, MightAndMagic, Minesweeper, Mud, Nibbles, ParticleSimulator, Sarlamar, Sarlem, Shadowrun, ShakesAndFidgets, Solitaire, Tetris, UniversalWidgets, WebConstants, Wesnoth, Zorder
Classes: Base, Board, Book, Brick, Bullet, Cannon, Char1, Char10, Char11, Char12, Char13, Char14, Char15, Char2, Char3, Char4, Char5, Char6, Char7, Char8, Char9, CharGenerator, Characters, Chest, City, Colliders, Commandline, Controller, CreateEmptyGamebookSkeleton, CreateGamesWebpage, Crowd, Cursor, Dice, Duck, DuckHuntCalculatorGame, Earth1, Earth2, EndKnight, EndPlayer, EndPlayerSide, Enemy, EnemyTank, EnemyTeam, Engine, Explosion, GameWindow, Game_Window, GenerateHtmlGamebook, Graphics, GridLayout, Hangman, HelloWorld, Highlight, Highlight2, InstallBaldursGate, Knight, Level_1, Level_2, Level_3, Mages, MainWindow, MapGenerator, Meteor, Meteor1, Meteor2, Meteor3, MovingTriangle, Mushrooms, Nut, Nuts, Player, PlayerClass, RepackageBaldursGateMods, Screen, Shoot, Signature1, Signature2, Sinatra, Snake, Sparkle, Spire, Star, SupplyRoom, TicTacToe, VierGewinnt, Wall
Constant Summary
collapse
- USE_THIS_PORT =
'5580'
- STD_FONT_SIZE =
'FS1em'
- COLOUR_SETTLEMENT =
'lightblue'
- N =
"\n"
- ERROR_LINE =
' 2>&1'
- TEMP_DIR =
'/tmp/'
- DIRECTORY_TO_THE_IMAGES_OF_THE_THEME_SYMBOLS =
#
DIRECTORY_TO_THE_IMAGES_OF_THE_THEME_SYMBOLS
This constant is only relevant for magic-the-gathering.
#
"#{project_base_directory?}"\
"images/magic_the_gathering/symbols_for_the_themes/"
"#!/usr/bin/ruby -w
# Encoding: UTF-8
# frozen_string_literal: true
# =========================================================================== ##{N}"
- UNHAPPY_SMILEY =
#
UNHAPPY_SMILEY
We can either use the ASCII variant or the Unicode variant. I prefer the unicode variant these days.
#
'😥️'
- PROJECT_BASE_DIRECTORY =
#
PROJECT_BASE_DIRECTORY
It is recommended to not use this constant directly. Instead make use of the method GamesAndRpgParadise.project_base_directory? if you have a need to find out where the project’s base directory is.
#
File.absolute_path("#{__dir__}/..")+'/'
- PROJECT_YAML_DIR =
PROJECT_BASE_DIRECTORY+'yaml/'
- VERSION =
#
GamesAndRpgParadise::VERSION
#
'0.0.8'
- LAST_UPDATE =
#
GamesAndRpgParadise::LAST_UPDATE
#
'10.03.2024'
- SARLEM =
#
GamesAndRpgParadise::SARLEM
This constant is no longer in use as of March 2023. Or, rather, it should point towards another target.
#
"#{HOME_X_DATA}rpg/sarlem/"
- SARLEM_YAML =
#
GamesAndRpgParadise::SARLEM_YAML
#
"#{SARLEM}yaml/"
- FILE_TAI_NAMES =
#
GamesAndRpgParadise::FILE_TAI_NAMES
#
"#{PROJECT_BASE_DIRECTORY}sarlem/the_eastern_realm/tai/yaml/tai_names.yml"
- FILE_MAGICAL_ITEMS =
#
FILE_MAGICAL_ITEMS
bl $SARLEM/yaml/magical_items.yml
#
"#{::GamesAndRpgParadise::PROJECT_BASE_DIRECTORY}sarlem/yaml/magical_items.yml"
- MAGICAL_ITEMS =
{}
- DIRECTORY_AM_RANDE_DER_NACHT =
#
GamesAndRpgParadise::DIRECTORY_AM_RANDE_DER_NACHT
#
"#{HOME_X_DATA}rpg/dsa/yaml/abenteuerbücher/Am_Rande_der_Nacht/"
- DEBUG =
Set to true to see bounding circles used for collision detection
false
- HOME_DIRECTORY_OF_THE_USER_X =
#
GamesAndRpgParadise::HOME_DIRECTORY_OF_THE_USER_X
#
'/home/x/'
- HOME_X_DATA =
#
GamesAndRpgParadise::HOME_X_DATA
#
"#{HOME_DIRECTORY_OF_THE_USER_X}data/"
- IMG_DIR =
#
GamesAndRpgParadise::IMG_DIR
#
"#{HOME_X_DATA}images/"
- RPG_IMG_DIR =
#
GamesAndRpgParadise::RPG_IMG_DIR
Build upon the constant IMG_DIR.
#
"#{IMG_DIR}RPG/"
- SARLEM_MAP =
#
GamesAndRpgParadise::SARLEM_MAP
This constant would expand towards a path such as “/home/x/data/images/RPG/SARLEM/SARLEMKARTE.png”.
#
"#{RPG_IMG_DIR}SARLEM/SARLEMKARTE.png"
- DATA_DIR =
#
GamesAndRpgParadise::DATA_DIR
This depends on the MY_DATA environment variable. It is only useful on my home setup.
#
ENV['MY_DATA'].to_s
- TAI_MAP =
#
GamesAndRpgParadise::TAI_MAP
gi $IMG/RPG/SARLEM/OSTREICH/TAI/TAI_MAPS/TAI_MAP.png
#
"#{RPG_IMG_DIR}SARLEM/OSTREICH/TAI/TAI_MAPS/TAI_MAP.png"
- FILE_DND_CHARACTERS =
#
GamesAndRpgParadise::FILE_DND_CHARACTERS
#
"#{project_base_directory?}dnd/yaml/characters.yml"
Class Method Summary
collapse
-
.available_gamebooks? ⇒ Boolean
# === GamesAndRpgParadise.available_gamebooks?.
-
.available_magic_themes? ⇒ Boolean
# === GamesAndRpgParadise.available_magic_themes? =========================================================================== #.
-
.bold_yellow(i) ⇒ Object
# === GamesAndRpgParadise.bold_yellow ============================================================================ #.
-
.calculates(i, &block) ⇒ Object
# === GamesAndRpgParadise::Dice.calculates =========================================================================== #.
-
.cat(i) ⇒ Object
# === GamesAndRpgParadise.cat.
-
.cd(i) ⇒ Object
# === GamesAndRpgParadise.cd ========================================================================= #.
-
.chdir(i) ⇒ Object
# === GamesAndRpgParadise.chdir (chdir tag, cd tag).
-
.convert(old_name, new_name, be_verbose = false) ⇒ Object
# === GamesAndRpgParadise.convert.
-
.copy_file(old_file, new_file) ⇒ Object
# === GamesAndRpgParadise.copy_file ========================================================================= #.
-
.delete(i) ⇒ Object
# === GamesAndRpgParadise.delete.
-
.disable_colours ⇒ Object
# === GamesAndRpgParadise.disable_colours ========================================================================= #.
-
.e(i = '') ⇒ Object
# === GamesAndRpgParadise.e ========================================================================= #.
-
.embeddable_interface ⇒ Object
# === GamesAndRpgParadise.embeddable_interface =========================================================================== #.
-
.enable_colours ⇒ Object
# === GamesAndRpgParadise.enable_colours ========================================================================= #.
-
.ensure_that_the_log_directory_exists(i = ::GamesAndRpgParadise::MagicTheGathering.log_dir?) ⇒ Object
# === GamesAndRpgParadise.ensure_that_the_log_directory_exists.
-
.esystem(i = '') ⇒ Object
# === GamesAndRpgParadise.esystem ========================================================================= #.
-
.file_good_dos_games ⇒ Object
# === GamesAndRpgParadise.file_good_dos_games.
-
.file_good_windows_games ⇒ Object
# === GamesAndRpgParadise.file_good_windows_games ========================================================================= #.
-
.gamebook_dataset_for(i = :stern_der_schmuggler) ⇒ Object
# === GamesAndRpgParadise.gamebook_dataset_for ========================================================================= #.
-
.gamebooks_directory? ⇒ Boolean
# === GamesAndRpgParadise.gamebooks_directory?.
-
.generate_name(area = 'westreich', how_many = 1) ⇒ Object
# === RpgParadise.generate_name.
-
.image_directory? ⇒ Boolean
# === GamesAndRpgParadise.image_directory? ========================================================================= #.
-
.is_on_roebe? ⇒ Boolean
# === GamesAndRpgParadise.is_on_roebe? ========================================================================= #.
-
.load_gamebook_dataset(i) ⇒ Object
# === GamesAndRpgParadise.load_gamebook_dataset =========================================================================== #.
-
.load_npc(this_file, project_yaml_directory = project_yaml_directory? ) ⇒ Object
# === GamesAndRpgParadise.load_npc.
-
.minfo(optional_content = '') ⇒ Object
# === GamesAndRpgParadise.minfo ========================================================================= #.
-
.mkdir(i) ⇒ Object
# === GamesAndRpgParadise.mkdir (mkdir tag) ========================================================================= #.
-
.mv(old_name, new_name) ⇒ Object
# === GamesAndRpgParadise.mv ========================================================================= #.
-
.n_cards_are_registered_in_the_local_magic_collection?(use_this_yaml_file = nil) ⇒ Boolean
# === GamesAndRpgParadise.n_cards_are_registered_in_the_local_magic_collection? =========================================================================== #.
-
.pngopt(this_file, be_verbose = false) ⇒ Object
# === GamesAndRpgParadise.pngopt.
-
.project_base_directory? ⇒ Boolean
# === GamesAndRpgParadise.project_base_directory? ========================================================================= #.
-
.project_image_directory? ⇒ Boolean
# === GamesAndRpgParadise.project_image_directory?.
-
.project_yaml_directory? ⇒ Boolean
# === GamesAndRpgParadise.project_yaml_directory? ========================================================================= #.
-
.rds(i) ⇒ Object
# === GamesAndRpgParadise.rds.
-
.return_array_available_magic_theme_icons ⇒ Object
# === GamesAndRpgParadise.return_array_available_magic_theme_icons =========================================================================== #.
-
.return_sarlem_name ⇒ Object
# === GamesAndRpgParadise.return_sarlem_name.
-
.rev ⇒ Object
# === GamesAndRpgParadise.rev.
-
.riddles(which_riddle = :default) ⇒ Object
# === GamesAndRpgParadise.riddles.
-
.roll(i = ARGV) ⇒ Object
# === GamesAndRpgParadise.roll(‘2d4-1’).
-
.run_app ⇒ Object
# === GamesAndRpgParadise.run_app =========================================================================== #.
-
.run_gamebooks_app ⇒ Object
# === GamesAndRpgParadise.run_gamebooks_app =========================================================================== #.
-
.sfile(i, use_colours = use_colours? ) ⇒ Object
# === GamesAndRpgParadise.sfile =========================================================================== #.
-
.show_dnd_xp_table ⇒ Object
# === GamesAndRpgParadise.show_dnd_xp_table =========================================================================== #.
-
.silently_roll_this_die(i) ⇒ Object
# === GamesAndRpgParadise.silently_roll_this_die.
-
.speak_to_group(i) ⇒ Object
# === GamesAndRpgParadise.speak_to_group ========================================================================= #.
-
.steelblue(i = '') ⇒ Object
# === GamesAndRpgParadise.steelblue =========================================================================== #.
-
.string_draw_a_card_from_the_deck_of_many_things ⇒ Object
# === GamesAndRpgParadise.string_draw_a_card_from_the_deck_of_many_things =========================================================================== #.
-
.temp_dir? ⇒ Boolean
# === GamesAndRpgParadise.temp_dir?.
-
.use_colours? ⇒ Boolean
# === GamesAndRpgParadise.use_colours? ========================================================================= #.
-
.version? ⇒ Boolean
# === GamesAndRpgParadise.version? ========================================================================= #.
-
.word_wrap(i = '', line_width = :default, optional_padding = '') ⇒ Object
# === GamesAndRpgParadise.word_wrap.
Instance Method Summary
collapse
-
#rev ⇒ Object
# === rev =========================================================================== #.
-
#speak_to_your_group(i) ⇒ Object
# === speak_to_your_group ========================================================================= #.
Class Method Details
.available_gamebooks? ⇒ Boolean
#
GamesAndRpgParadise.available_gamebooks?
This method will return all available gamebooks, as Array.
#
46
47
48
49
50
51
52
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/gamebook.rb', line 46
def self.available_gamebooks?
Dir[
"#{project_yaml_directory?}gamebooks/**/**.yml"
].reject {|line|
line.include? 'config.yml'
}
end
|
.available_magic_themes? ⇒ Boolean
#
GamesAndRpgParadise.available_magic_themes?
#
.bold_yellow(i) ⇒ Object
#
GamesAndRpgParadise.bold_yellow
#
97
98
99
|
# File 'lib/games_and_rpg_paradise/colours/colours.rb', line 97
def self.bold_yellow(i)
::Colours.bold_yellow(i)
end
|
.calculates(i, &block) ⇒ Object
#
GamesAndRpgParadise::Dice.calculates
#
507
508
509
|
# File 'lib/games_and_rpg_paradise/utility_scripts/dice/dice.rb', line 507
def self.calculates(i, &block)
GamesAndRpgParadise::Dice.calculate(i, &block).to_s
end
|
.cat(i) ⇒ Object
#
GamesAndRpgParadise.cat
This method will read and display the content of a given file.
#
14
15
16
17
18
19
20
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/cat.rb', line 14
def self.cat(i)
if File.exist? i
e File.readlines(i).join
else
e 'Can not read from file '+sfile(i)+' as it does not exist.'
end
end
|
.cd(i) ⇒ Object
#
GamesAndRpgParadise.cd
#
12
13
14
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/cd.rb', line 12
def self.cd(i)
Dir.chdir(i)
end
|
.chdir(i) ⇒ Object
#
GamesAndRpgParadise.chdir (chdir tag, cd tag)
cd-opertion captured in a toplevel-method.
#
17
18
19
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/misc.rb', line 17
def self.chdir(i)
Dir.chdir(i)
end
|
.convert(old_name, new_name, be_verbose = false) ⇒ Object
#
GamesAndRpgParadise.convert
Use ImageMagick’s convert functionality here.
#
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/convert.rb', line 14
def self.convert(
old_name,
new_name,
be_verbose = false
)
old_name = '"'+old_name+'"' if old_name.include? "'"
new_name = '"'+new_name+'"' if new_name.include? "'"
cmd = "convert #{old_name} #{new_name}"
e cmd if be_verbose
`#{cmd}`
end
|
.copy_file(old_file, new_file) ⇒ Object
#
GamesAndRpgParadise.copy_file
#
14
15
16
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/copy_related_code.rb', line 14
def self.copy_file(old_file, new_file)
FileUtils.cp(old_file, new_file)
end
|
.delete(i) ⇒ Object
#
GamesAndRpgParadise.delete
This toplevel method can be used to delete a local file.
#
14
15
16
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/delete.rb', line 14
def self.delete(i)
File.delete(i) if File.exist? i
end
|
.disable_colours ⇒ Object
#
GamesAndRpgParadise.disable_colours
#
31
32
33
|
# File 'lib/games_and_rpg_paradise/colours/colours.rb', line 31
def self.disable_colours
@use_colours = false
end
|
.e(i = '') ⇒ Object
#
GamesAndRpgParadise.e
#
12
13
14
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/e.rb', line 12
def self.e(i = '')
puts i
end
|
.embeddable_interface ⇒ Object
#
GamesAndRpgParadise.embeddable_interface
#
82
83
84
85
86
|
# File 'lib/games_and_rpg_paradise/www/embeddable_interface.rb', line 82
def self.embeddable_interface
object = Object.new
object.extend(::GamesAndRpgParadise::EmbeddableInterface)
return object
end
|
.enable_colours ⇒ Object
#
GamesAndRpgParadise.enable_colours
#
24
25
26
|
# File 'lib/games_and_rpg_paradise/colours/colours.rb', line 24
def self.enable_colours
@use_colours = true
end
|
.ensure_that_the_log_directory_exists(i = ::GamesAndRpgParadise::MagicTheGathering.log_dir?) ⇒ Object
#
GamesAndRpgParadise.ensure_that_the_log_directory_exists
This method will create the log directory.
Note that the actual target may change eventually.
#
19
20
21
22
23
24
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/ensure_that_the_log_directory_exists.rb', line 19
def self.ensure_that_the_log_directory_exists(
i = ::GamesAndRpgParadise::MagicTheGathering.log_dir? )
require 'games_and_rpg_paradise/magic_the_gathering/constants/constants.rb'
mkdir(i) unless File.directory? i
end
|
.esystem(i = '') ⇒ Object
#
GamesAndRpgParadise.esystem
#
12
13
14
15
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/esystem.rb', line 12
def self.esystem(i = '')
puts "#{rev}#{i}"
system i
end
|
.file_good_dos_games ⇒ Object
#
GamesAndRpgParadise.file_good_dos_games
This method returns the file where
#
17
18
19
|
# File 'lib/games_and_rpg_paradise/constants/files_and_directories.rb', line 17
def self.file_good_dos_games
"#{project_yaml_directory?}good_dos_games/good_dos_games.yml"
end
|
.file_good_windows_games ⇒ Object
#
GamesAndRpgParadise.file_good_windows_games
#
24
25
26
|
# File 'lib/games_and_rpg_paradise/constants/files_and_directories.rb', line 24
def self.file_good_windows_games
"#{project_yaml_directory?}good_windows_games/good_windows_games.yml"
end
|
.gamebook_dataset_for(i = :stern_der_schmuggler) ⇒ Object
#
GamesAndRpgParadise.gamebook_dataset_for
#
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/gamebook.rb', line 14
def self.gamebook_dataset_for(
i = :stern_der_schmuggler
)
require 'yaml'
if i.is_a? Array
i = i.first
end
case i
when :stern_der_schmuggler
i = '13_stern_der_schmuggler.yml'
when :frisch_geerbt
i = 'frisch_geerbt_ist_halb_gestorben.yml'
end
_ = "#{project_yaml_directory?}gamebooks/#{i}"
if File.exist? _ YAML.load_file(_)
else
puts 'No file exists at '+_+'.'
end
end
|
.gamebooks_directory? ⇒ Boolean
#
GamesAndRpgParadise.gamebooks_directory?
On my home system the return of this method is this string:
"/home/Programs/Ruby/3.0.2/lib/ruby/site_ruby/3.0.0/rpg_paradise/yaml/gamebooks/"
#
26
27
28
|
# File 'lib/games_and_rpg_paradise/constants/gamebooks.rb', line 26
def self.gamebooks_directory?
"#{project_yaml_directory?}gamebooks/"
end
|
.generate_name(area = 'westreich', how_many = 1) ⇒ Object
#
RpgParadise.generate_name
Define a class method in order to generate names.
#
708
709
710
711
712
|
# File 'lib/games_and_rpg_paradise/mud/name_generator/name_generator.rb', line 708
def self.generate_name(
area = 'westreich', how_many = 1
)
RpgParadise::Mud::NameGenerator[area, how_many].name?
end
|
.image_directory? ⇒ Boolean
#
GamesAndRpgParadise.image_directory?
#
31
32
33
|
# File 'lib/games_and_rpg_paradise/constants/files_and_directories.rb', line 31
def self.image_directory?
"#{project_base_directory?}images/"
end
|
.is_on_roebe? ⇒ Boolean
#
GamesAndRpgParadise.is_on_roebe?
#
12
13
14
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/roebe.rb', line 12
def self.is_on_roebe?
ENV['IS_ROEBE'].to_s == '1'
end
|
.load_gamebook_dataset(i) ⇒ Object
#
GamesAndRpgParadise.load_gamebook_dataset
#
230
231
232
|
# File 'lib/games_and_rpg_paradise/gamebooks/gamebooks.rb', line 230
def self.load_gamebook_dataset(i)
::GamesAndRpgParadise::Gamebooks.load_gamebook_dataset(i)
end
|
.load_npc(this_file, project_yaml_directory = project_yaml_directory?
) ⇒ Object
#
GamesAndRpgParadise.load_npc
This method can be used to load “registered” NPCs. This refers primarily to the game world Sarlem. In theory the code could be expanded to allow the loading of data from other game worlds, but I will only add support for this if other users want it; otherwise I am the only user anyway, and I only write code that I may need. ;)
Note for this to work a .yml file has to exist at the assumed location, so make sure that this .yml file exists.
Usage example:
GamesAndRpgParadise.load_npc('hideo_yoshi')
#
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/npc_related_code.rb', line 29
def self.load_npc(
this_file,
project_yaml_directory = project_yaml_directory?
)
require 'games_and_rpg_paradise/requires/require_yaml.rb'
this_file = this_file.to_s.dup
this_file << '.yml' unless this_file.end_with?('.yml')
assume_this_location = project_yaml_directory+
'sarlem/npc/'+this_file
return YAML.load_file(assume_this_location)
end
|
.minfo(optional_content = '') ⇒ Object
#
GamesAndRpgParadise.minfo
#
90
91
92
93
94
95
96
97
98
99
100
101
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/misc.rb', line 90
def self.minfo(optional_content = '')
div('pad1em',
'',
'RANDOM_BORDER_1PX') {
s2 'Meisterinformation',
'marb8px BLOCK BO BG_Black Yel FI marl0_5em wid25 s0_5em',
'',
'border-bottom: 2px solid slateblue;
border-left: 2px solid slateblue;'
e optional_content, 'padl1em' unless optional_content.empty?
}
end
|
.mkdir(i) ⇒ Object
#
GamesAndRpgParadise.mkdir (mkdir tag)
#
12
13
14
15
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/mkdir.rb', line 12
def self.mkdir(i)
require 'fileutils'
FileUtils.mkdir_p(i) unless File.directory?(i)
end
|
.mv(old_name, new_name) ⇒ Object
#
GamesAndRpgParadise.mv
#
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/mv.rb', line 14
def self.mv(
old_name,
new_name
)
if old_name == new_name
e "Can not rename as both arguments are the same ({old_name})."
else
FileUtils.mv(old_name, new_name)
end
end
|
.n_cards_are_registered_in_the_local_magic_collection?(use_this_yaml_file = nil) ⇒ Boolean
#
GamesAndRpgParadise.n_cards_are_registered_in_the_local_magic_collection?
#
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
|
# File 'lib/games_and_rpg_paradise/games/magic_the_gathering/module_methods/module_methods.rb', line 1928
def self.n_cards_are_registered_in_the_local_magic_collection?(
use_this_yaml_file = nil
)
case use_this_yaml_file
when :default,
nil
use_this_yaml_file =
::GamesAndRpgParadise::MagicTheGathering::
YAML_FILE_CONTAINING_THE_LOCAL_CARD_COLLECTION_FOR_MAGIC_THE_GATHERING
when :alternative_default
use_this_yaml_file =
'/tmp/'+File.basename(
::GamesAndRpgParadise::MagicTheGathering::
YAML_FILE_CONTAINING_THE_LOCAL_CARD_COLLECTION_FOR_MAGIC_THE_GATHERING
)
else
if File.exist?(use_this_yaml_file.to_s)
else
puts 'Not registered input: '+use_this_yaml_file.to_s
puts 'We will continue, though.'
end
end
result = 0
if File.exist? use_this_yaml_file
result = YAML.load_file(use_this_yaml_file).keys.size
else
puts 'File could not be found - input was: '+use_this_yaml_file.to_s
end
return result
end
|
.pngopt(this_file, be_verbose = false) ⇒ Object
#
GamesAndRpgParadise.pngopt
Optimize a .png file here. This functionality depends on the binary called “optipng”.
#
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/pngopt.rb', line 15
def self.pngopt(
this_file,
be_verbose = false
)
case be_verbose
when :be_verbose
be_verbose = true
end
this_file = '"'+this_file+'"' if this_file.include? "'"
if this_file.include? 'Ã'
this_file.gsub!(/Ã/,'Ã\x86')
end
this_file = '"'+this_file+'"' if this_file.include? '('
_ = "optipng #{this_file}#{ERROR_LINE}"
e _ if be_verbose
`#{_}`
end
|
.project_base_directory? ⇒ Boolean
#
GamesAndRpgParadise.project_base_directory?
#
31
32
33
|
# File 'lib/games_and_rpg_paradise/project/project.rb', line 31
def self.project_base_directory?
PROJECT_BASE_DIRECTORY
end
|
.project_image_directory? ⇒ Boolean
#
GamesAndRpgParadise.project_image_directory?
This method will yield a String such as “/home/x/programming/ruby/src/games_and_rpg_paradise/lib/games_and_rpg_paradise/images/”.
#
53
54
55
|
# File 'lib/games_and_rpg_paradise/project/project.rb', line 53
def self.project_image_directory?
"#{PROJECT_BASE_DIRECTORY}images/"
end
|
.project_yaml_directory? ⇒ Boolean
#
GamesAndRpgParadise.project_yaml_directory?
#
41
42
43
|
# File 'lib/games_and_rpg_paradise/project/project.rb', line 41
def self.project_yaml_directory?
"#{PROJECT_BASE_DIRECTORY}yaml/"
end
|
.rds(i) ⇒ Object
#
GamesAndRpgParadise.rds
Note that the name for this method, rds, stands for “remove double slashes”.
#
15
16
17
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/rds.rb', line 15
def self.rds(i)
i.squeeze '/'
end
|
.return_array_available_magic_theme_icons ⇒ Object
#
GamesAndRpgParadise.return_array_available_magic_theme_icons
#
1919
1920
1921
1922
1923
|
# File 'lib/games_and_rpg_paradise/games/magic_the_gathering/module_methods/module_methods.rb', line 1919
def self.return_array_available_magic_theme_icons
Dir[
DIRECTORY_TO_THE_IMAGES_OF_THE_THEME_SYMBOLS+'*.png'
]
end
|
.return_sarlem_name ⇒ Object
#
GamesAndRpgParadise.return_sarlem_name
Generate a name for sarlem.
#
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
# File 'lib/games_and_rpg_paradise/sarlem/sarlem.rb', line 148
def self.return_sarlem_name
array = %w(
Eloria
Ksara
Cella
Zaya
Terys
Fynnwen
Evarius
Hulrias
Minaros
)
sample = array.sample
return sample
end
|
.rev ⇒ Object
#
GamesAndRpgParadise.rev
This used to be ShakesAndFidgets::White, but in October 2023, during the rewrite, it has been changed.
#
107
108
109
|
# File 'lib/games_and_rpg_paradise/colours/colours.rb', line 107
def self.rev
::Colours.rev
end
|
.riddles(which_riddle = :default) ⇒ Object
#
GamesAndRpgParadise.riddles
This method groups together some riddles. Right now german and english may be mixed, but in the future we may have to distinguish based on the language.
#
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/misc.rb', line 54
def self.riddles(
which_riddle = :default
)
case which_riddle
when :default,
:nothing
p { e 'Wenn jemand nicht weiss, was es ist'
e 'so ist es etwas.'
br
e 'Doch weiss jemand was es ist, so ist es nichts.'
}
end
end
|
.roll(i = ARGV) ⇒ Object
527
528
529
530
|
# File 'lib/games_and_rpg_paradise/utility_scripts/dice/dice.rb', line 527
def self.roll(i = ARGV)
dice = ::GamesAndRpgParadise::Dice.new(i)
return dice.result?
end
|
.run_app ⇒ Object
#
GamesAndRpgParadise.run_app
#
.run_gamebooks_app ⇒ Object
#
GamesAndRpgParadise.run_gamebooks_app
#
.sfile(i, use_colours = use_colours?
) ⇒ Object
#
GamesAndRpgParadise.sfile
#
204
205
206
207
208
209
|
# File 'lib/games_and_rpg_paradise/base/extensions/colours.rb', line 204
def self.sfile(
i, use_colours = use_colours?
)
return ::Colours.sfile(i) if use_colours
return i
end
|
.show_dnd_xp_table ⇒ Object
#
GamesAndRpgParadise.show_dnd_xp_table
#
.silently_roll_this_die(i) ⇒ Object
#
GamesAndRpgParadise.silently_roll_this_die
Usage example:
GamesAndRpgParadise.silently_roll_this_die('1D10')
#
.speak_to_group(i) ⇒ Object
#
GamesAndRpgParadise.speak_to_group
#
75
76
77
78
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/misc.rb', line 75
def self.speak_to_group(i)
s2 '"'+i+'"',
'BLOCK mars1em forestgreen FI'
end
|
.steelblue(i = '') ⇒ Object
#
GamesAndRpgParadise.steelblue
#
114
115
116
|
# File 'lib/games_and_rpg_paradise/colours/colours.rb', line 114
def self.steelblue(i = '')
::Colours.steelblue(i)
end
|
.string_draw_a_card_from_the_deck_of_many_things ⇒ Object
#
GamesAndRpgParadise.string_draw_a_card_from_the_deck_of_many_things
#
399
400
401
402
403
|
# File 'lib/games_and_rpg_paradise/rpg/dnd/items/deck_of_many_things.rb', line 399
def self.string_draw_a_card_from_the_deck_of_many_things
deck = GamesAndRpgParadise::DnD::DeckOfManyThings.new(ARGV, false)
deck.disable_colours
return deck.first_draw
end
|
.temp_dir? ⇒ Boolean
#
GamesAndRpgParadise.temp_dir?
This method attempts to return a valid “temp directory”.
#
31
32
33
34
35
36
37
38
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/ensure_that_the_log_directory_exists.rb', line 31
def self.temp_dir?
_ = ENV['TEMP'].to_s
_ = TEMP_DIR if _.empty?
_ = '/tmp/' unless File.directory?(_)
_ = _.dup if _.frozen?
_ << 'games_and_rpg_paradise/' unless _.end_with?('games_and_rpg_paradise')
return _
end
|
.use_colours? ⇒ Boolean
#
GamesAndRpgParadise.use_colours?
#
17
18
19
|
# File 'lib/games_and_rpg_paradise/colours/colours.rb', line 17
def self.use_colours?
@use_colours
end
|
.version? ⇒ Boolean
#
GamesAndRpgParadise.version?
#
18
19
20
|
# File 'lib/games_and_rpg_paradise/version/version.rb', line 18
def self.version?
VERSION
end
|
.word_wrap(i = '', line_width = :default, optional_padding = '') ⇒ Object
#
GamesAndRpgParadise.word_wrap
long_string.word_wrap(75)
#
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/misc.rb', line 26
def self.word_wrap(
i = '',
line_width = :default,
optional_padding = '' )
case line_width
when :default
line_width = 80
end
if i.is_a? Array
i = i.join(' ').strip
end
new_text = i.dup.gsub(
/(.{1,#{line_width}})(\s+|$)/, optional_padding+"\\1\n"
)
return new_text
end
|
Instance Method Details
#rev ⇒ Object
121
122
123
|
# File 'lib/games_and_rpg_paradise/colours/colours.rb', line 121
def rev
::GamesAndRpgParadise.rev
end
|
#speak_to_your_group(i) ⇒ Object
83
84
85
|
# File 'lib/games_and_rpg_paradise/toplevel_methods/misc.rb', line 83
def speak_to_your_group(i)
::GamesAndRpgParadise.speak_to_your_group(i)
end
|