Giter VIP home page Giter VIP logo

starwaysold's Introduction

Starways

A open source "Clone" of the freeware 4X game Aurora written in Java

starwaysold's People

Contributors

ryancwilliams avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

thisisnozaku

starwaysold's Issues

Create Star Object

Create a object for representing a star.

At this poing the star object should have functions for accessing/generating:

  • Temperature (Should have Field)
  • Diamater/Radius (Should have Field)
  • Mass (Should have Field)
  • Classification
  • Luminosity

Values of Quantities Unit conversion bug.

This code

//Test Values of Quanties
ValueOfLength test = new ValueOfLength(1, QuantityOfLength.LIGHT_YEAR);
System.out.println(test);
System.out.println(test.asString());
System.out.println(test.getConvertedValueOfLength(QuantityOfLength.METRE).asString());
System.out.println(test.getConvertedValueOfLength(QuantityOfLength.KILOMETRE).asString());
System.out.println(test.getConvertedValueOfLength(QuantityOfLength.ASTRONOMICAL_UNIT).asString());
System.out.println(test.getConvertedValueOfLength(QuantityOfLength.LIGHT_YEAR).asString());
test = new ValueOfLength(0.1, QuantityOfLength.ASTRONOMICAL_UNIT);
System.out.println(test);
System.out.println(test.asString());
System.out.println(test.getConvertedValueOfLength(QuantityOfLength.METRE).asString());
System.out.println(test.getConvertedValueOfLength(QuantityOfLength.KILOMETRE).asString());
System.out.println(test.getConvertedValueOfLength(QuantityOfLength.ASTRONOMICAL_UNIT).asString());
System.out.println(test.getConvertedValueOfLength(QuantityOfLength.LIGHT_YEAR).asString());

gives

ValueOfLength{value=1.0, quantity=QuantityOfLength{Name=light-year, Symbol=ly, ConversionFactor=9.4607304725808E15}}
1.00 ly
0.00 m
0.00 km
0.00 au
1.00 ly
ValueOfLength{value=0.1, quantity=QuantityOfLength{Name=astronomical unit, Symbol=au, ConversionFactor=1.495978707E11}}
0.10 au
0.00 m
0.00 km
0.10 au
6,324.11 ly

this means that the unit conversion system is bugged.

Create Main Game Window

Create the game window that is used to play the game. Should have menus to access other windows and time controles.

Create Launch Window

This window is the first window that the user sees on launch. It is for selecting and launching a existing game or for launching the new game generation window.

Create Position System

Create a system for managing positions in the game.

Should have finite Position object (X & Y)

  • Used for systems

Should have relative Position object (Finite Location + dX & dY)

  • used for bodies in system (like ships and stars)

Should have orbit Position object (Finite Location, Distance, Polar Angle of Position)

  • used for orbiting bodies in system (Like planets and moons)

Create Astronomical Object

Astronomical objects or celestial objects are naturally occurring physical entities. - source Wikipedia

This object is to serve as the base-class for Stars and Planetary Bodies.

This object should have
-Diamater/Radius
-Mass
-Location (Relative to current system)

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.