nataliapc / msx2daad

DAAD interpreter created from scratch for MSX2/MSX2+ systems using the graphical capabilities of this machines.
Other
35 stars 3 forks source link

Objects in Containers or real Locations #4

Closed nataliapc closed 4 years ago

nataliapc commented 4 years ago

How do original DAAD interpreters to store in COLoc, O2Loc flags (and in the objects table) that a object is inside a container and not in a real location?

nataliapc commented 4 years ago

The easiest solution for Container vs Location issue seems to have a Word value for locations instead of a Byte in the objects table, and if a location is a container set the bit#8

nataliapc commented 4 years ago

Question solved. As DAAD manual said:

"40) A container needs a corresponding location. For an object to be a container there must be a location with the same No. as the object."

So containers are locations without conections nor location description.