public Portrait(string name, string image, GameConstants.eGender gender, GameConstants.eArchetype archetype)
 {
     this.name      = name;
     this.image     = image;
     this.gender    = gender;
     this.archetype = archetype;
 }
        public static void CreateCharacter(
            AsyncRPGDataContext context,
            int account_id,
            string name,
            GameConstants.eGender gender,
            GameConstants.eArchetype archetype,
            int picture_id)
        {
            Characters newCharacter = new Characters
            {
                AccountID       = account_id,
                GameID          = -1,
                RoomX           = 0,
                RoomY           = 0,
                RoomZ           = 0,
                LastPingTime    = DateTime.Now,
                LastSentEventID = -1,
                NewEventsPosted = false,
                X          = 0.0f,
                Y          = 0.0f,
                Z          = 0.0f,
                Angle      = 0.0f,
                Name       = name,
                Gender     = (gender == GameConstants.eGender.Male),
                Archetype  = (int)archetype,
                PictureID  = picture_id,
                PowerLevel = 1,
                Energy     = 0
            };

            context.Characters.InsertOnSubmit(newCharacter);
            context.SubmitChanges();
        }
 public CharacterCreateRequestProcessor(
     int account_id,
     string name,
     GameConstants.eGender gender,
     GameConstants.eArchetype archetype,
     int picture_id)
 {
     m_account_id = account_id;
     m_name = name;
     m_gender = gender;
     m_archetype = archetype;
     m_picture_id = picture_id;
 }
 public CharacterCreateRequestProcessor(
     int account_id,
     string name,
     GameConstants.eGender gender,
     GameConstants.eArchetype archetype,
     int picture_id)
 {
     m_account_id = account_id;
     m_name       = name;
     m_gender     = gender;
     m_archetype  = archetype;
     m_picture_id = picture_id;
 }
Beispiel #5
0
 public Player()
 {
     m_character_id   = -1;
     m_character_name = "";
     m_archetype      = GameConstants.eArchetype.warrior;
     m_gender         = GameConstants.eGender.Female;
     m_picture_id     = -1;
     m_power_level    = 0;
     m_energy         = 0;
     m_health         = 0;
     m_room_key       = new RoomKey();
     m_position       = new Point3d();
     m_energy         = 0;
 }
Beispiel #6
0
 public Player()
 {
     m_character_id = -1;
     m_character_name = "";
     m_archetype = GameConstants.eArchetype.warrior;
     m_gender = GameConstants.eGender.Female;
     m_picture_id = -1;
     m_power_level = 0;
     m_energy = 0;
     m_health = 0;
     m_room_key = new RoomKey();
     m_position = new Point3d();
     m_energy = 0;
 }
 public CharacterData()
 {
     character_id   = -1;
     character_name = "";
     archetype      = GameConstants.eArchetype.warrior;
     gender         = GameConstants.eGender.Female;
     picture_id     = -1;
     power_level    = 1;
     game_id        = -1;
     game_name      = "";
     room_x         = 0;
     room_y         = 0;
     room_z         = 0;
     x      = 0;
     y      = 0;
     z      = 0;
     angle  = 0;
     energy = 0;
 }
Beispiel #8
0
 public CharacterData()
 {
     character_id= -1;
     character_name= "";
     archetype= GameConstants.eArchetype.warrior;
     gender= GameConstants.eGender.Female;
     picture_id= -1;
     power_level = 1;
     game_id = -1;
     game_name = "";
     room_x= 0;
     room_y= 0;
     room_z= 0;
     x= 0;
     y= 0;
     z= 0;
     angle = 0;
     energy = 0;
 }
 public Portrait(string name, string image, GameConstants.eGender gender, GameConstants.eArchetype archetype)
 {
     this.name = name;
     this.image = image;
     this.gender = gender;
     this.archetype = archetype;
 }