Home > RGSS Script Reference > Class
Class
Description: Defines a class. Classes are composed of properties, expressed as instance variables, and methods for manipulating the data within the class. Classes should be organized around some logical structure. In RMXP terms, this might be a menu, special functions needed for a character advancement system, or whatever. The "<" notation indicates inheritance from a parent class. If you inherit class B from class A, class B will have all of class A's properties and methods, in addition to any new ones you define for class B.
Code Sample:
class Game_Event < Game_Character
attr_reader :trigger
attr_reader :list
attr_reader :starting
|
|
|