NAME

Games::Framework::RCP::Database::Result::Hazard - The big list of hazards.

VERSION

0.22

DESCRIPTION

The hazards table contains a list of every unique hazard. Hazards are random elements that can cause a battle to take a different turn. Not all battles will use hazards, but it is provided for convenience.

For those that have played Super Smash Bros, the items that drop at regular intervals are a form of hazard. The items that drop can change the face of the battle, depending on how useful the item is.

DATABASE TABLE

The big list of hazards.

id_hazard_set

This is the primary key of the table, using the traditional auto incrementing.

name

This accepts 64 characters to identify the name of the hazard. Needless to say, this is unique.

description

This accepts 256 characters to add some flavortext to the hazard. Such text can be humurous, or it could indicate what the hazard is generally about.

fkey_color

This ID points to the Color table in a one to one mapping. A color given to a status effect may make it easier to identify.

weight

Every hazard has a certain chance to be chosen. By default, all hazards have a weight of 1, showing equal chance. Game Masters can change the weight of hazards so that certain ones show up more than others.

SUBROUTINES/METHODS

sqlt_deploy_hook()

sqlt_deploy_hook is used to define the table settings for the various databases.

weight()

weight returns the row's weight times a random number. weight by itself is pointless.

AUTHOR

Jason Felds, <wolfman.ncsu2000 at gmail.com>

BUGS AND LIMITATIONS

Please report any bugs or feature requests to bug-Games-Framework-RCP at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-Framework-RCP-Database-Result-Hazard. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Games::Framework::RCP::Database::Result::Hazard

You can also look for information at:

ACKNOWLEDGEMENTS

See Games::Framework::RCP for all acknowledgements.

LICENSE AND COPYRIGHT

Copyright 2009 Jason Felds, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.