View Single Post
  #5  
Old 10-19-2006, 09:25 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by xXziroXx View Post
Definideatly alternative A.
No. Definitely
Quote:
Originally Posted by contiga View Post
Alternative C, which is:
PHP Code:
//Class - mud
//#CLIENTSIDE
function GetItemPoweritemid)
  return ( @ 
"item-" itemid).power
PHP Code:
//Some weapon
this.join"mud");
//#CLIENTSIDE
function onCreated()
  echo( 
mud::GetItemPower3324)); 
No.

B.
If you have >1 weapon all joining the same class (and I'm assuming there's more than one function in that class), it is less efficient to load each of those weapons with code that is unneeded for that weapon (say the weapon only uses one of many functions) using join() than to have each of these weapons calling a public function in a single existance of the library.

If that's the only function in the class, the different is negligible.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote