• Welcome to Valhalla Legends Archive.
 

Recreation of Warcraft

Started by Joe[x86], May 24, 2005, 10:16 PM

Previous topic - Next topic

Joe[x86]

Yeah, I got bored and got some good progress on a Warcraft thingy. I'm making the focus on it being nice and clean. Each unit type will be a class, each with its own statistics class. The stats class tracks its hitpoints, mana, etc. I don't know if I really intend to make this playable, but if I do, it will be nowhere near remotely pretty. Right now, I plan to make the units be little squares running arround the form. Right now, I've pretty much finished the peon unit. Once his class is laid down, the rest is copy + paste heaven from then on until I hit the UI. Thats when the project dies. If anybody wants to contribute any ideas to the project, or request further information, I'm on AIM, Yahoo, MSN, and you can always PM me here.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Newby

Why are you going to waste time on a project if you aren't going to complete it .. ?

And why are you writing a game in Visual Basic .. ?
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

Networks

Perhaps a good learning experience but find it to be a waste of time to create a game that is already made and WILL definetly be better then what he may create =\.

Tontow

Or perhaps he could make it open source when hes tired of it?

MyndFyre

Something that stands out to me is that you're making a stats class that is independent from the unit itself.

Every unit has certain features -- HP (and some MP) for example.  Instead of having an independent class that tracks a unit's stats, try a tree like this:

class Unit
|--property HP (integer)
|--property Region (some type of region information for pathing/collision tests)
|-->class CasterUnit
|     --property MP (integer)
|------>class HeroUnit
           --property Agility (integer)
           --property Strength (integer)
           --property Intellect (integer)
           --property Name (string)
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Joe[x86]

#5
This is WarCraft 1 for now. I'm doing more of a..

Unit Class {
    Constants (Max Health, Max Mana, Build Cost (Wood/Gold)
    Functions (GetName, GetRace, etc.)
    Statistics Sub-Class {
        Current HP
        Current MP
        Kills
        etc
    }
}

EDIT -
    I suppose I didn't mention that I will have a single statistics class. The class will be created by each unit upon its creation on the field. The class itself, at design time, will be a single file.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.