DynRPG v0.32 Unofficial
Plugin SDK
Public Attributes | List of all members
RPG::DBClass Class Reference

Used for the default data of classes which is defined in the database. More...

#include <DBClass.h>

Public Attributes

int id
 ID of the class.
 
DStringPtr name
 Default class name.
 
bool twoWeapons
 Does the class use a second weapon instead of the shield?
 
bool lockEquipment
 Is the equipment locked?
 
bool aiControl
 Is the class controlled by the computer in battle?
 
bool mightyGuard
 Does defending reduce the damage more than usual?
 
ArrayBaseOne< short, 99 > maxHp
 Array of maximum HP values for each level.
 
ArrayBaseOne< short, 99 > maxMp
 Array of maximum MP values for each level.
 
ArrayBaseOne< short, 99 > attack
 Array of attack values for each level.
 
ArrayBaseOne< short, 99 > defense
 Array of defense values for each level.
 
ArrayBaseOne< short, 99 > intelligence
 Array of intelligence values for each level.
 
ArrayBaseOne< short, 99 > agility
 Array of agility values for each level.
 
int expPrimary
 Primary experience curve parameter.
 
int expSecondary
 Secondary experience curve parameter.
 
int expTertiary
 Tertiary experience curve parameter.
 
CatalogPtr< SkillProgression * > skillLearning
 Skill learning data.
 
DArray< DamageMultiplier_T, 1, 2 > conditions
 Condition Resistance Array (See RPG::DamageMultiplier)
 
DArray< DamageMultiplier_T, 1, 2 > attributes
 Attribute Resistance Array (See RPG::DamageMultiplier)
 
int battleGraphicId
 Battle graphic ID.
 
int battleCommands [7]
 Default battle commands (0 and -1 both mean "no command at this position")
 

Detailed Description

Used for the default data of classes which is defined in the database.

Note
The members of this class either mean default values of a property or they are used for properties which aren't supposed to be changed in-game, thus the members won't be saved and loaded automatically (as it is the case with RPG::Actor), but only loaded once at startup.

See also
RPG::dbClasses
RPG::Actor
RPG::actors

Member Data Documentation

◆ attributes

DArray<DamageMultiplier_T, 1, 2> RPG::DBClass::attributes

Attribute Resistance Array (See RPG::DamageMultiplier)

If at a certain point, the resistance of an attribute and all attributes higher than it are C, the attributes.size will equal the number of the highest non-C attribute.

Example:

Attr1: A
Attr2: B
Attr3: C
Attr4: C
Attr5: C

Because Attr3 is C, and those above it are C, attributes.size will be 2, because Attr2 is the last non-C attribute.

Warning
This can be confusing, because if you need to use attributes[15], but check for attributes.size to be 15 first, it could be 10 if 11-15 are all C, so the check would be false. The solution would be to use RPG::attributes.count() for the check instead. This would resize the array once an attribute higher than attributes.size is called, but because of the resizeValue in the template for RPG::DArray, attributes 11-15 would be correctly assigned to C

◆ conditions

DArray<DamageMultiplier_T, 1, 2> RPG::DBClass::conditions

Condition Resistance Array (See RPG::DamageMultiplier)

If at a certain point, the resistance of a condition and all conditions higher than it are C, the conditions.size will equal the number of the highest non-C condition.

Example:

Cond1: A
Cond2: B
Cond3: C
Cond4: C
Cond5: C

Because Cond3 is C, and those above it are C, conditions.size will be 2, because Cond2 is the last non-C condition.

Warning
This can be confusing, because if you need to use conditions[15], but check for conditions.size to be 15 first, it could be 10 if 11-15 are all C, so the check would be false. The solution would be to use RPG::conditions.count() for the check instead. This would resize the array once a condition higher than conditions.size is called, but because of the resizeValue in the template for RPG::DArray, conditions 11-15 would be correctly assigned to C

The documentation for this class was generated from the following file: