259 const int OBJECTMAXPART = 40;
260 const int MAXCRASHSPHERE = 40;
261 const int OBJECTMAXDESELLIST = 10;
262 const int OBJECTMAXINFO = 10;
263 const int OBJECTMAXCMDLINE = 20;
345 FILTER_ONLYLANDING = 1,
346 FILTER_ONLYFLYING = 2,
358 void DeleteObject(
bool bAll=
false);
360 bool ExploObject(ExploType type,
float force,
float decay=1.0f);
362 bool EventProcess(
const Event &event);
363 void UpdateMapping();
366 void DeletePart(
int part);
367 void SetObjectRank(
int part,
int objRank);
368 int GetObjectRank(
int part);
369 void SetObjectParent(
int part,
int parent);
373 void SetOption(
int option);
379 bool Write(
char *line);
380 bool Read(
char *line);
382 void SetDrawWorld(
bool bDraw);
383 void SetDrawFront(
bool bDraw);
385 bool CreateVehicle(
Math::Vector pos,
float angle,
ObjectType type,
float power,
bool bTrainer,
bool bToy);
400 bool ReadProgram(
int rank,
const char* filename);
401 bool WriteProgram(
int rank,
char* filename);
402 bool RunProgram(
int rank);
404 int GetShadowLight();
405 int GetEffectLight();
407 void FlushCrashShere();
408 int CreateCrashSphere(
Math::Vector pos,
float radius,
Sound sound,
float hardness=0.45f);
409 int GetCrashSphereTotal();
410 bool GetCrashSphere(
int rank,
Math::Vector &pos,
float &radius);
411 float GetCrashSphereHardness(
int rank);
412 Sound GetCrashSphereSound(
int rank);
413 void DeleteCrashSphere(
int rank);
418 void SetShieldRadius(
float radius);
419 float GetShieldRadius();
421 void SetFloorHeight(
float height);
435 void SetAngleY(
int part,
float angle);
436 void SetAngleX(
int part,
float angle);
437 void SetAngleZ(
int part,
float angle);
438 float GetAngleY(
int part);
439 float GetAngleX(
int part);
440 float GetAngleZ(
int part);
441 void SetZoom(
int part,
float zoom);
444 void SetZoomX(
int part,
float zoom);
445 float GetZoomX(
int part);
446 void SetZoomY(
int part,
float zoom);
447 float GetZoomY(
int part);
448 void SetZoomZ(
int part,
float zoom);
449 float GetZoomZ(
int part);
451 float GetWaterLevel();
453 void SetTrainer(
bool bEnable);
456 void SetToy(
bool bEnable);
459 void SetManual(
bool bManual);
462 void SetResetCap(ResetCap cap);
463 ResetCap GetResetCap();
464 void SetResetBusy(
bool bBusy);
470 void SetResetRun(
int run);
473 void SetMasterParticle(
int part,
int parti);
474 int GetMasterParticle(
int part);
482 void SetTruckPart(
int part);
486 void DeleteInfo(
int rank);
487 void SetInfo(
int rank,
Info info);
488 Info GetInfo(
int rank);
490 void SetInfoReturn(
float value);
491 float GetInfoReturn();
492 void SetInfoUpdate(
bool bUpdate);
493 bool GetInfoUpdate();
495 bool SetCmdLine(
int rank,
float value);
496 float GetCmdLine(
int rank);
503 void SetViewFromHere(
Math::Vector &eye,
float &dirH,
float &dirV,
513 void SetEnergy(
float level);
516 void SetCapacity(
float capacity);
519 void SetShield(
float level);
522 void SetRange(
float delay);
525 void SetTransparency(
float value);
526 float GetTransparency();
528 ObjectMaterial GetMaterial();
530 void SetGadget(
bool bMode);
533 void SetFixed(
bool bFixed);
536 void SetClip(
bool bClip);
539 bool JostleObject(
float force);
541 void StartDetectEffect(
CObject *target,
bool bFound);
543 void SetVirusMode(
bool bEnable);
545 float GetVirusTime();
549 void SetCameraDist(
float dist);
550 float GetCameraDist();
551 void SetCameraLock(
bool bLock);
552 bool GetCameraLock();
554 void SetHilite(
bool bMode);
557 void SetSelect(
bool bMode,
bool bDisplayError=
true);
558 bool GetSelect(
bool bReal=
false);
560 void SetSelectable(
bool bMode);
561 bool GetSelectable();
563 void SetActivity(
bool bMode);
566 void SetVisible(
bool bVisible);
569 void SetEnable(
bool bEnable);
572 void SetCheckToken(
bool bMode);
573 bool GetCheckToken();
575 void SetProxyActivate(
bool bActivate);
576 bool GetProxyActivate();
577 void SetProxyDistance(
float distance);
578 float GetProxyDistance();
580 void SetMagnifyDamage(
float factor);
581 float GetMagnifyDamage();
583 void SetParam(
float value);
586 void SetIgnoreBuildCheck(
bool bIgnoreBuildCheck);
587 bool GetIgnoreBuildCheck();
589 void SetExplo(
bool bExplo);
591 void SetLock(
bool bLock);
593 void SetCargo(
bool bCargo);
595 void SetBurn(
bool bBurn);
597 void SetDead(
bool bDead);
602 void SetGunGoalV(
float gunGoal);
603 void SetGunGoalH(
float gunGoal);
607 bool StartShowLimit();
608 void StopShowLimit();
611 void CreateSelectParticle();
613 void SetRunScript(
CScript* script);
620 void SetAuto(
CAuto* automat);
622 void SetDefRank(
int rank);
625 bool GetTooltipName(std::string& name);
627 void AddDeselList(
CObject* pObj);
629 void DeleteDeselList(
CObject* pObj);
632 bool CreateShadowLight(
float height,
Gfx::Color color);
633 bool CreateEffectLight(
float height,
Gfx::Color color);
638 void SetTraceDown(
bool bDown);
640 void SetTraceColor(
int color);
641 float GetTraceWidth();
642 void SetTraceWidth(
float width);
644 std::string GetModelDirName();
646 static DriveType GetDriveFromObject(
ObjectType type);
647 static ToolType GetToolFromObject(
ObjectType type);
650 bool EventFrame(
const Event &event);
651 void VirusFrame(
float rTime);
652 void PartiFrame(
float rTime);
654 void InitPart(
int part);
655 void UpdateTotalPart();
656 int SearchDescendant(
int parent,
int n);
657 void UpdateEnergyMapping();
658 bool UpdateTransformObject(
int part,
bool bForceUpdate);
659 bool UpdateTransformObject();
660 void UpdateSelectParticle();
686 float m_shadowHeight;
688 float m_effectHeight;
701 float m_transparency;
707 float m_lastVirusParticle;
708 float m_lastParticle;
715 bool m_bProxyActivate;
726 bool m_bIgnoreBuildCheck;
730 float m_showLimitRadius;
737 float m_magnifyDamage;
738 float m_proxyDistance;
741 int m_crashSphereUsed;
743 float m_crashSphereRadius[MAXCRASHSPHERE];
744 float m_crashSphereHardness[MAXCRASHSPHERE];
745 Sound m_crashSphereSound[MAXCRASHSPHERE];
747 float m_globalSphereRadius;
749 float m_jotlerSphereRadius;
750 float m_shieldRadius;
755 int m_totalDesectList;
756 CObject* m_objectDeselectList[OBJECTMAXDESELLIST];
767 Info m_info[OBJECTMAXINFO];
771 float m_cmdLine[OBJECTMAXCMDLINE];