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

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

Dependencies

Annotate this POD

Module Version: 0.22   Source  

NAME ^

Games::Framework::RCP::Database::Result::CharacterInventory - Every item a character has in storage.

VERSION ^

0.22

DESCRIPTION ^

The character inventory table contains all of the items that that the characters have in their out of battle inventory. Some Game Masters may also want to use this as an "infinite storage locker" for fighters to store items not brought to battle. Others may want to use this instead of CombatantInventory to deal with items found in battle. The uses are vast.

DATABASE TABLE ^

Every item a character has in storage.

id_character_inventory

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

fkey_character

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

fkey_item

This ID points to the Item table in a many to one mapping. Many characters 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-CharacterInventory. 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::CharacterInventory

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: