Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7927303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:14:18+00:00 2026-06-03T19:14:18+00:00

Me and a friend are currently looking at developing a game, with similarities to

  • 0

Me and a friend are currently looking at developing a game, with similarities to a certain trademarked francise. To define the units in the game, we’ve created an abstract class which denotes the 44 variables, and two methods that need to be instantiated with each instance of a unit. The next step in this game would be to of course, define all the units in the game. Unfortunately, I have 648 units that need to be defined, with 22 final values for each which must be examined at each individual instantiation in the game. For example, if I encounter this unit in the game, I would pass a method it’s value, and it would look at some sort of defining table which give all these base, final values. The problem we’ve encountered with this of course, is finding a method of doing this effectively, and securely. Currently, for testing of other methods, I have a few units defined through enumeration, and have their values stored in an array. My partner has suggest we create a defining class, which will look at a plaintext lookup table. However, I see the problem with such a solution would either be the length, or quantity of lookup tables would be massive. I have searched around, but most solutions entail the use of a server. Our current goal, however is to just release an offline client with everything already defined.

Anyways, I know this was a lot of possible rambling, but… does anyone have any suggestions on how to store 648 units with 22 different final attributes effectively, so that such an entity could be called later and examined? I don’t need a thorough code example, but ideas would be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:14:20+00:00Added an answer on June 3, 2026 at 7:14 pm

    You probably want to create a database which contains a table of units and a set of columns (or fields) for the respective attributes. This is most abstract example I can provide.

    An implementation without a server would instead entail a flat file database such as SQLite. Of course, if you want to build your own custom database as your friend suggests, it would be the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently interested in game developing. I know a little bit of C#
Hello my friend is currently development an application using SOA Architecture, He sent me
I currently have a MySQL table like: id | friend 1 | 2 1
I want tot send a friend request using the Facebook Android SDK. I'm currently
My friend and I were discussing the other day which style of code is
A friend of mine is making a trivia game in C++, and I am
I am currently looking for a proper way to restrain the usage of a
A friend of mine and I are looking to start a project looking into
Currently I am loooking for a way to develop an algorithm which is supposed
Currently ive got some reference counted classes using the following: class RefCounted { public:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.