Login | Register  
View Article

Current Articles | Categories | Search | Syndication

Genders in WheelMUD

I made a new class called Gender in the WheelMUD.GameEngine namespace. I always felt uncomfortable with hard-coded genders. I created a data and parser files for Warrior, Rogue, and Mage (WRM). These load into the GameSystemController.Genders dictionary. I thoght this was a more flexible way of doing this. The WRM character creation step that picks genders has been modified to use this new functionality.

My main reason behind this was to support gaming environments that support more than the binary male/female choices. Science fiction has races that have alternate gender arrangements. You have the Andorians in Star Trek that have 4 genders. There are several species in several universes that are hermaphrodites.

While I believe that genders are not necessary for gaming, they do bring interesting prospects for game character development, and can add depth to game play.

/// <summary>

/// This represents a player, Mob, or NPC gender.

/// </summary>

public class Gender

{

    /// <summary>

    /// Initializes a new instance of the <see cref="Gender"/> class.

    /// </summary>

    /// <param name="name">The name for this gender.</param>

    /// <param name="displayName">The display name for this gender.</param>

    public Gender(string name, string displayName)

    {

        this.Name = name;

        this.DisplayName = displayName;

    }

 

    /// <summary>

    /// Gets the name for this gender.

    /// </summary>

    public string Name { get; private set; }

 

    /// <summary>

    /// Gets the display name for this gender.

    /// </summary>

    public string DisplayName { get; private set; }

}

posted @ Tuesday, May 24, 2011 12:04 PM by Fastalanasa

Previous Page | Next Page

COMMENTS

Only registered users may post comments.
Copyright 2007-2012 by WheelMUD  | Terms Of Use | Privacy Statement
Google Analytics Alternative