Exemplo n.º 1
0
 //
 public static ActivityInterface createActivity(eActivity activity, AvatorCharacter _refAvatar)
 {
     ActivityInterface action = null;
     switch( activity ){
     case eActivity.Think: action = new ActivityThink(); break;
     case eActivity.Move: action = new ActivityMove(); break;
     case eActivity.Conversation: action = new ActivityConversation(); break;
     case eActivity.Working: action = new ActivityWork(); break;
     default: break;
     }
     if( action != null ){
         action.refAvatar = _refAvatar;
     }
     return action;
 }
Exemplo n.º 2
0
 public void GameInit(AvatorCharacter avatar_character)
 {
     _current_activity_worker = null;
     refAvatarCharacter = avatar_character;
 }