TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: RICHARD VETO
date: 1998-03-28 09:57:00
subject: Programming

 * Original message posted in area Rathmore
 * Cross posted to area Fido - C Echo
                        Fido - C++ Echo
While writing this online game, I've encountered a small problem and am not 
sure how to go about it.  In most games, there is a player inventory.  This 
inventory is an array within the player structure.  The problem is, the 
inventory can have armor, weapons, wands, rings; each of which are different 
structures.  How do I link all those structures to reflect in the player 
inventory?  Do I use a union?
--- Telegard v3.02/mL
---------------
* Origin: Underworld Systems V - (416)782-1980 (1:259/416)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.