Giter VIP home page Giter VIP logo

dungeonrefactor's Introduction

DungeonRefactor

Refactoring for CSCD 212

(Michael Kieburtz) Dungeon character now has a data class called DungeonCharacterStats that keeps track of all the fields that were previously in that class.

(Michael Kieburtz) Every hero now has a specialMove instance, which represents their special move. The battleChoices() menu is no longer overridden by each Hero, and is simply defined in Hero.

(David Lopez) chooseHero() was moved into its own class called HeroFactory and from there, you can choose which character you want to be.

(David Lopez) generateMonster() was moved into its own class called MonsterFactory and with this factory, you will create a monster for the dungeon game.

(Eric Laplante) moved playAgain() from Dungeon to DungeonGame and battle() from Dungeon to DungeonGame.

(Eric Laplante and David Lopez) changed chooseHero() call in main method to appropriate class - HeroFactory.chooseHero() changed generateMonster() call in main method to appropriate class - MonsterFactory.generateMonster() changed battle(theHero, theMonster) call in main method to appropriate class DungeonGame.battle(theHero, theMonster) change playAgain() call in main method to appropriate class - DungeonGame.playAgain().

(Eric Laplante) replaced the entirety of code in Keyboard to construct a static scanner named kb. Replaced all references to previous Keyboard methods to appropriate method calls from kb

(David Lopez) Changed the methods subtractHitPoints() to loseHealth() and attack() to normalAttack(). Changed the names of these methods because it's easy to understand what these methods do.

dungeonrefactor's People

Contributors

mkieburtz avatar dnlop95 avatar ericlplante avatar

Watchers

 avatar

Forkers

dnlop95

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.