Exemple #1
0
 ////////////////////////////////////////////////////////////////////////
 ///
 /// @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;
 }
Exemple #2
0
 public ToolContext(Tool tool, Engine _engine)
 {
     defaultTool = tool;
     engine = _engine;
     resetState();
 }