.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #27  
Old January 4th, 2003, 06:02 AM
Krsqk's Avatar

Krsqk Krsqk is offline
Lieutenant Colonel
 
Join Date: Jul 2001
Location: Orlando, FL
Posts: 1,259
Thanks: 0
Thanked 0 Times in 0 Posts
Krsqk is on a distinguished road
Default Re: K-Editor v1.12

Sometimes called a dimensional component. Take each tech requirement, and it's one dimension to the matrix. Two requirements generates a "square" component, three requirements generates a "cube" component, etc. This would be useful, for example, to create missiles with separate tech levels which affect range, damage, and speed. Here's a sample 2-dimensional component with "sides" of "size" 3; the numbers represent tech levels.
code:
Damage:  1     2     3
Range:
1 1/1 | 1/2 | 1/3
2 2/1 | 2/2 | 2/3
3 3/1 | 3/2 | 3/3

Notice that instead of 3 component levels, there are nine. With a three dimensional component, there would be 27:
code:
Speed:         1           ||           2           ||           3
1/1/1 | 1/1/2 | 1/1/3 || 2/1/1 | 2/1/2 | 2/1/3 || 3/1/1 | 3/1/2 | 3/1/3
1/2/1 | 1/2/2 | 1/2/3 || 2/2/1 | 2/2/2 | 2/2/3 || 3/2/1 | 3/2/2 | 3/2/3
1/3/1 | 1/3/2 | 1/3/3 || 2/3/1 | 2/3/2 | 2/3/3 || 3/3/1 | 3/3/2 | 3/3/3
|| ||

As you can probably imagine, this gets very cumbersome to hand-code, as well as being very error-prone. These issues grow exponentially with every additional dimension or "size" increase.

[ January 04, 2003, 04:42: Message edited by: Krsqk ]
__________________
The Unpronounceable Krsqk

"Well, sir, at the moment my left processor doesn't know what my right is doing." - Freefall
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:39 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.