View Single Post
  #2  
Old 08-09-2008, 02:21 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Your object creation syntax is horrible, please do it properly just in the interest of eliminating all possibilities in error.

And having two construct echoed is not surprising.
Its possible to do <classname>::<functionname>(); if two classes have same function.

I would highly suggest avoiding situations where functions overwrite like that.

PHP Code:
function thefunction() {
  
temp.var = new TStaticVar("Movement");
  
temp.var.join("whitedragon_system_movement");
  
temp.var = new Movement("NormalMovement");
  
temp.var.join("whitedragon_system_movement_normal");
  
this.movement = new NormalMovement();
  
this.movement.construct();

__________________
Reply With Quote