typecasting vs : in Click() in Design Philosophy
|
|
Okay here's a good question as far as I'm concerned... Is it better to use a colon (:) or typecast when referencing the usr of a Click() proc when calling a mob proc?
Example
turf/DblClick() var/mob/Player/P = usr P.Move(src) P.Proc()
turf/DblClick() usr.Move(src) usr:Proc()
|
|
As well, your second example has no reason at all to be using the : operator. The . operator will work absolutely fine.