Ah… Ok..En fait je ne saisis pas trop la différence entre :
until (Map53[Point3D(Esc53X, Esc53Y, 1)].Field is TGround);
until Map53[Point3D(Esc53X, Esc53Y, 1)].Field = Grass;
Ah… Ok..until (Map53[Point3D(Esc53X, Esc53Y, 1)].Field is TGround);
until Map53[Point3D(Esc53X, Esc53Y, 1)].Field = Grass;
Oui oui, ok !..
)
DerF_44Oui.
Si je crée un terrain MonTerrain(TWater) je pourrais le pratiquer uniquement avec une bouée ou une barque !?.
DerF_44Pour les terrains il n'y a que ceci (dans FunLabyBase) :
En fait ma question : Mais quelles sont donc les “grandes” classes de base !!???
Ok, Merci sjrd !
Bon, encore un truc tout bête que je cherche sur le Net sans résultats probants :
MachinTruc := Random(39)+16;
Merci d'y porter attention.
Random(B-A+1) + A
Random(55-39+1) + 39
Hoùùlàà là !!!?… 


Merci beaucoup !!
Encore (encore !) besoin d'une petite précision !..
repeat
CleX := Random(36-20+1)+20;
CleY := Random(74-58+1)+58;
until Map[Point3D(CleX, CleY, 0)].Field is TGround;
Map[Point3D(CleX, CleY, 0)].Tool := WhiteKeyTool;
Merci.function IsValidForKey(Square: TSquare): Boolean private;
begin
Result := (Square.Field is TGround) and (Square.Effect = nil) and
(Square.Tool = nil) and (Square.Obstacle = nil);
end;
until IsValidForKey(Map[Point3D(CleX, CleY, 0)]);