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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:00:57+00:00 2026-05-13T06:00:57+00:00

Im trying to make something like an Rpg game atm but im really stuck

  • 0

Im trying to make something like an Rpg game atm but im really stuck on something i really dont know what to do anymore i really need help it might look like a noob question but please try to answer me >.< this is the parent class

namespace ConsoleApplication1
{
    class Personaje
    {
        public Rango Damage;
        public int Defensa;

        public int HP;

        public int MP;
        public bool Evade;
        public bool Counter;
        public string Nombre;
        public Personaje() { }
        public Personaje(Rango Damage, int Defensa, int HP, bool Evade, bool Counter, string Nombre)
        {
            this.Damage = Damage;
            this.Defensa = Defensa;
            this.HP = HP;
            this.Evade = Evade;
            this.Counter = Counter;
            this.Nombre = Nombre;
        }
    }
}

this is one of the childs

namespace ConsoleApplication1
{
    class Enemigo:Personaje
    {

    }
}

this is one of the childs and the one im having trouble with i dont know how to put the status on it

namespace ConsoleApplication1
{
    class Poring:Enemigo
    {
        int HP = 30;
        int MP = 10;
        int Def = 0;
        public bool Evade()
        {
            return false;
        }
        public bool Counter()
        {
            return false;
        }
        public Rango Damage()
        {
            Rango r = new Rango();
            r.min = 10;
            r.max = 15;
            return r;
        }
        string Nombre = "Poring";

        //Personaje Propiedades = new Personaje(Damage,Def, HP, Evade, Counter, Nombre);
        Personaje omg = new Personaje();


    }
}
  • 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-13T06:00:57+00:00Added an answer on May 13, 2026 at 6:00 am

    If I understand your question correctly, I think you are wanting to be able to call the constructor on the parent to pass in the state of the object. You have to overload the constructor at each level of the class heirarchy.

    class Enemigo : Personaje
    {
        public Enemigo(Rango Damage, int Defensa, int HP, bool Evade, bool Counter, string Nombre)
           : base(Damage, Defensa, HP, Evade, Counter, Nombre)
        {
        }
    }
    
    class Poring:Enemigo
    {
           public Poring(Rango Damage, int Defensa, int HP, bool Evade, bool Counter, string Nombre)
              : base(Damage, Defensa, HP, Evade, Counter, Nombre)
              {
              }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make something that looks like this, but I don't know how
I am trying to make something like an horizontal label: But there is a
hello im trying to make something like github treeslider im new to javascript.. but
I am trying to make something like this: Master detail gridview But give me
I am trying to make something like a thermometer but but I have a
I'm currently in a .NET4 Windows Forms Application. I'm trying to make something like
Trying to make a simple program to catalogue books. Something like this, for example:
Trying to make a simple program to catalogue books. Something like this, for example:
I'm trying to make something pretty simple, but I simply suck at regular expressions.
I'm new to C++ and trying to make two simple functions, but something goes

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.