Gamemode to Filterscript, Class?
#1

Ok a while ago I realised that pretty much filterscript are independent from the gamemode, unless the function(s) created a publicly declared.

It is still just speculation, but think about it.

Filterscripts are just like classes.

For those who do not know what classes are:
http://en.wikipedia.org/wiki/Class_%...ter_science%29
Although, someone once told me that class functions are different when you call them outside that class.
The place where the function is called simply wants the result and without knowing how it got there.
The function runs in a class and returns a specified value.

A story to unfold the mystery:
Imagine you have 2 rooms.
1 room is a (filterscript) class, the other room is the gamemode calling a filterscript function
The person in charge of gamemode-room asks for the answer on a question asked. ( Let's say a command, /kick ).
The boss of gamemode-room asks for the answer, not how it is done.
Meanwhile, in class-room, the person in charge there is working his ass off getting the function done in time. However, since there is no interference from the gamemode or any other class, this class-room can work much faster because of the variables that are not necessary do get skipped or whatsoever. ( if not, you would be able to use variables and functions without calling remote function). Back on track, the routine job ( function ) is done, and now returns the result.

To make this story more understandable for some of you, imagine that what you asked is a hand crafted star made out of wood.
Imagine you the boss of the gamemode-room. You do not care about what technique and such is behind the crafting of the star. You only want that star.

However, as the boss of gamemode-room, you want to make sure everything your employees do that they do it the correct way. In other words, you need to pay constant attention to your employees.

This is just speculation, but it makes sense to me.
Am I just plainly wrong, or could there be at least a littlebit of truth in here.
If wrong, tell me where and why?

Other than that, why does sa-mp not support "real" classes? Or rather, why doesn't Pawn(o) support classes?

Peace

PS: What does the fact that kye didn't made pawn has to do with the question I asked?
I am just saying. Besides that, you didn't really answered my question.
Reply


Messages In This Thread
Gamemode to Filterscript, Class? - by maij - 29.04.2010, 08:15
Re: Gamemode to Filterscript, Class? - by Calgon - 29.04.2010, 08:18
Re: Gamemode to Filterscript, Class? - by Roytjuh - 29.04.2010, 16:38
Re: Gamemode to Filterscript, Class? - by Calgon - 29.04.2010, 17:01
Re: Gamemode to Filterscript, Class? - by Roytjuh - 29.04.2010, 18:46
Re: Gamemode to Filterscript, Class? - by maij - 29.04.2010, 18:50
Re: Gamemode to Filterscript, Class? - by maij - 29.04.2010, 20:49

Forum Jump:


Users browsing this thread: 1 Guest(s)