[gameprogrammer] Re: online server, propagating changes

On Mon, 2006-11-13 at 15:30 -0500, Roger D Vargas wrote:
> Yes, I dont know the exact term to define it. What I need to do is the 
> following:
> 
> if X starts walking:
>     notify all entities in visible range
> 
> Not just "walking", but any state change or action, like X starts 
> attacking Y,  or changes armor, equips a new weapon, etc.

You need to use something like a quadtree or a bsptree so that you can
quickly find the entities that are close enough to need to be notified.
Then, you need to send a message (call a method) that tells them of the
change.

                Bob Pendleton

> 
> Alan Wolfe escribió:
> > I didn't even consider that he might not be talking about propogating 
> > data across a network but now that you mention it, that might be exactly 
> > what he's trying to do.
> >  
> > Can you give some more info on what you are trying to accomplish Roger? (:
> >  
> > On 11/13/06, *Matthew Weigel* <unique@xxxxxxxxxxx 
> > <mailto:unique@xxxxxxxxxxx>> wrote:
> > 
> >     Roger D Vargas wrote:
> >      > Im working in an online rpg project in my spare time, but I stilll
> >      > havent figured out an algorithm to propagate entity changes to
> >     nearby
> >      > entities. Also I have no idea about what terms to use to google.
> >      > Can somebody pooint me to some resource about this?
> > 
> >     Sounds like either data replication, or a neural network?
> >     --
> >     Matthew Weigel
> >     hacker
> >     unique@xxxxxxxxxxx <mailto:unique@xxxxxxxxxxx>
> > 
> >     ---------------------
> >     To unsubscribe go to http://gameprogrammer.com/mailinglist.html
> >     <http://gameprogrammer.com/mailinglist.html>
> > 
> > 
> > 
> 
-- 
+--------------------------------------+
+ Bob Pendleton: writer and programmer +
+ email: Bob@xxxxxxxxxxxxx             +
+ web: www.GameProgrammer.com          +
+ www.Wise2Food.com                    +
+ nutrient info on 7,000+ common foods +
+--------------------------------------+



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: