[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SmallMap issue(s)
From: |
Gervase Lam |
Subject: |
SmallMap issue(s) |
Date: |
Tue, 8 Oct 2002 23:52:05 +0100 |
I'm looking at SmallMap doesn't show exit (Bug 1213). The solution says
"to add a generic WorldObj::draw_smallmap() and let Entrance and Exit
classes do the rest. ExitTrap classes could also draw themself on the
map." Does this mean something a bit like Entrance::put_onto_smallmap()
and Exit::put_onto_smallmap()?
If so, this is going to be some undertaking as that means every Pingu and
object should have the possibility of drawing themselves on to the
smallmap. Does this mean that the ColMap class should also alter the
smallmap?
In a way this is a good thing is it enables the 'terrain' on the smallmap
to be constantly updated, unlike what happens now. If the SmallMap class
were to be given the resposibility of updating the 'terrain', it would
have to go through the whole colmap array after every game "update". This
could slow things down.
Also, how would each object access the small map so that it can be
altered? Should a pointer or reference to the small map be passed to each
object? How and where in the code should the small map object or data
type be instantiated?
Thanks,
Gervase.
- SmallMap issue(s),
Gervase Lam <=
Re: SmallMap issue(s), Ingo Ruhnke, 2002/10/09
Re: SmallMap issue(s), Ingo Ruhnke, 2002/10/10