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 3975930
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:44:40+00:00 2026-05-20T04:44:40+00:00

Games, such as Nintendo DS games, have to store data of their objects, for

  • 0

Games, such as Nintendo DS games, have to store data of their objects, for example, RPG needs to store data of bestiary, weapons and spells.

I want to know the best way to create a game database in C++ and use object-oriented features.


Example:

A RPG with the following tables:

  • Class (Name, Race, Ability, Atk, Def, …)
  • Race (Name, …)
  • Ability (Name, …)
  • Skill (Name, Race, Power, …)
  • Learning (Class, Level, Skill, …)

Each class belongs to a race. “Human ranger” and “Elf ranger” are different classes. A class is not available to all races.
Abilities are used outside battles (thieves can lockpick doors), and skills are for battles.
Skills are invented by a race, but other races can learn it. A “human karateka” can learn “Tiger Fist Attack” from “cat men”.
A class can learn new skills when level up.

The player can hire mercenaries, that are randomly generated. Mercenaries data is stored in player’s save file.

  • Mercenary (Name, Class, Level, Personality, …)

It could be stored as static data. Each table could be stored as an array of structs, where the array index is the key of each line in the table.

I would have to create a function to initialize each array position with data of each line. But I think that it can be statically initialized in memory without a function.

An easy way to edit database is important, because many attribute values need to be tested and balanced.

  • 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-05-20T04:44:40+00:00Added an answer on May 20, 2026 at 4:44 am

    Look into using SQLite. It is the most widely distributed embedded database and integrates very well into many languages.

    As your posts begins to explain, you could accomplish this yourself with your own C++ code, but SQLite solves the problem very well and you get many advantages out of the box (sorting, aggregating, etc).

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

Sidebar

Related Questions

I am doing game for iphone.In that I want to store game data such
On my page http://example.com/games/games/ipad.html I have links such as: <a href=/../2010/junee2010/44/Grand Theft Auto Chinatown
I have an image such as this: I want to have it so I
I have http://communitychessclub.com/games-nu.php with a game scores table. And I want the user to
So, I'm working on the basics of Actionscript 3; making games and such. I
XNA games have an Unload() method, where content is supposed to be unloaded. But
Similar to the Simon games of old, I want to show the user a
Some social games on Facebook let user publish a link to their feed to
I have a Linq2Sql query that looks like this: var data = from d
I've no games programming knowledge and have oft wondered how the levels in 2D

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.