//////////////////////////////////////////////////////////////////////// /// /// @fn void ToolContext::ChangeState() /// /// Permet de changer l'outil sélectionné /// /// @return Aucun /// //////////////////////////////////////////////////////////////////////// public void ChangeState(Tool tool) { if (activeTool != null) activeTool.esc(); activeTool = tool; }
public ToolContext(Tool tool, Engine _engine) { defaultTool = tool; engine = _engine; resetState(); }