Jason Felds > Games-Framework-RCP > Games::Framework::RCP::Database::Result::CombatantInventory

Download:
Games-Framework-RCP-0.04_01.tar.gz

Dependencies

Annotate this POD

Module Version: 0.22   Source  

NAME ^

Games::Framework::RCP::Database::Result::CombatantInventory - Every item a combatant has in battle.

VERSION ^

0.22

DESCRIPTION ^

The combatant inventory table contains all of the items that that the characters have in their in battle inventory. This is separate from CharacterInventory, which is generally meant for items held outside of battle. However, some Game Masters may like using CharacterInventory instead. The choice is theirs.

DATABASE TABLE ^

Every item a combatant has in battle.

id_combatant_inventory

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

fkey_combatant

This ID points to the Combatant table in a many to one mapping. Many items can belong to a combatant.

fkey_item

This ID points to the Item table in a many to one mapping. Many combatants can have the same item.

display_name

An alternate name can be provided for the item as the time arises. However, try to stick with the item ID whenever possible.

ammo

This integer shows how many uses of the item are available. In general, once this hits zero, the item should be removed from the table.

SUBROUTINES/METHODS ^

sqlt_deploy_hook()

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

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-CombatantInventory. 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::CombatantInventory

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.

syntax highlighting: