Quote:
Originally Posted by InsomniacPro
So I'm still waiting for you to tell me how using a dictionary, which you'd have to enumerate through, is more efficient and smarter than making a tile as blessed, then doing a simple if check.
|
No let me ask you a question...
Quote:
Originally Posted by InsomniacPro
You are over complicating things
public bool BlessedTile(ushort x, ushort y)
{
return (Tile[x,y].Flags & TileFlags.Blessed) == TileFlags.Blessed;
}
|
Assume that i am casting luckytime at 10x 10y and another player decides to stand at 11x 11y how are you planing on calling BlessedTile without looping whatsoever.
And to answer your retarded question... The whole tile flagging thing is pointless. Each stupid player HAS to have a boolean or at least the PRAY status flag stored to tell if that player is PRAYING or CASTING PRAY.
And there is no doing it other wise so why waster your fucking time and resources flagging and checking stupid tiles when its a known fucking fact that whenever player X is casting pray his fucking X/Y are the center of the luckytime circle. And any freaking player in distance X from the caster should leech luckytime as long as he is not casting luckytime himself.
So now tell me what is so wrong if each luckytime caster had a list that contains all/any leechers and then whenever you update the caster onscreen luckytime timer you update whoever else is in that list.
If you think it could be done better than that then explain to me and to others... If not then bite on a real hard D*ck and save us your retarded questions...
Quote:
Originally Posted by InsomniacPro
Sure, you'd only enumerate about 10 entities within the collection probably. And then do whatever needs be with each entry. But still, what is faster? Enumerating through a collection of the prayer, or doing ONE IF CHECK on a single tile in a timed manner. Plz.
|
Fast does not = efficient
And when a single feature such as luckytime has to be spread all over the damn source and intervene even with the map tiles then you better (Shift + Delete + Enter) that source and google the meaning of the word "efficient" first.
I was only trying to help your retarded ass you ungrateful little f*ck.