GithubHelp home page GithubHelp logo

beholder-class's Introduction

Beholder-Class

The Beholder class in Java is a blueprint for creating instances of Beholders Beholder Class in Java Introduction

Objectives/Purpose The Beholder class in Java is a blueprint for creating instances of Beholders, fictional creatures from the Dungeons & Dragons universe. The class is designed to serve as a blueprint for the definition and manipulation of various attributes, such as the Beholder's name, color, and abilities.

Background Beholders are fascinating magical entities endowed with numerous eye stalks, each with a unique power. This Java class was made to highlight the essential characteristics and abilities of Beholders in a reusable object-oriented format.

Methodology Inputs name: Name of the Beholder (String) radius: Physical size (double) color: Skin color (String) eyeColor: Eye color (String) teeth: Type of teeth (String) numEyeStalks: Number of eye stalks (int)

Outputs Printed Beholder attributes Text displaying abilities Beholder attributes are initialized through one of three constructors. Getters and setters allow manipulation of these attributes. Abilities are invoked via specific methods.

Methods fireEyeBeam(String beam): Executes an eye beam attack, where beam specifies the type. (can fire various eye beams) levitate(): Makes the Beholder levitate, printing a descriptive text. Variables Private instance variables: name, radius, color, eyeColor, teeth, numEyeStalks Calculations N/A

Results

Findings The Java class successfully enables the creation and manipulation of Beholder instances with a variety of attributes. It also provides methods for executing specific abilities tied to the creature.

Significance The class captures the complexities and functionalities of a Beholder, providing a robust toolset for simulating these magical creatures in a Java environment.

Conclusions What Was Learned The project was a hands-on experience in object-oriented programming, it focused on encapsulation, inheritance, and the creation of versatile constructors in Java. This project was instrumental in learning about default constructors.

Recommendations Future updates may include:

Adding more abilities to the Beholder Developing subclasses for specific types of Beholders error checks or validation mechanisms Calculations such as hit points, ability scores, and ability modifiers

beholder-class's People

Contributors

bluehat894 avatar

Watchers

 avatar

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.