void ITerrestre.Andar(Key tecla, Animacoes movimentos) { if (tecla == Key.Left) { movimentos.Esquerda.Begin(); } if (tecla == Key.Right) { movimentos.Direita.Begin(); } }
void ITerrestre.Rastejar(Key tecla, Animacoes movimentos) { if (tecla == Key.E) { movimentos.RastejarEsquerda.Begin(); } if (tecla == Key.R) { movimentos.RastejarDireita.Begin(); } }
void ITerrestre.Correr(Key tecla, Animacoes movimentos) { if (tecla == Key.Q) { movimentos.CorrerEsquerda.Begin(); } if (tecla == Key.W) { movimentos.CorrerDireita.Begin(); } }
void IAquatico.Nadar(Key tecla, Animacoes movimentos) { if (tecla == Key.Left) { movimentos.Esquerda.Begin(); } if (tecla == Key.Right) { movimentos.Direita.Begin(); } }
public override void Movimentar(Key tecla, Animacoes movimentos) { if (tecla == Key.Up) { (this as ITerrestre).Andar(tecla, movimentos); } if (tecla == Key.Down) { (this as IAquatico).Nadar(tecla, movimentos); } if (tecla == Key.Left) { movimentos.Esquerda.Begin(); } if (tecla == Key.Right) { movimentos.Direita.Begin(); } }
void IVoador.Voar(Key tecla, Animacoes movimentos) { if (tecla == Key.Up) { movimentos.VoarCima.Begin(); } if (tecla == Key.Down) { movimentos.VoarBaixo.Begin(); } if (tecla == Key.Left) { movimentos.Esquerda.Begin(); } if (tecla == Key.Right) { movimentos.Direita.Begin(); } }
public override void Movimentar(Key tecla, Animacoes movimentos) { (this as IVoador).Voar(tecla, movimentos); }
public override void Movimentar(Key tecla, Animacoes movimentos) { movimentos.IrParaAgua.Begin(); (this as IAquatico).Nadar(tecla, movimentos); }
void IAquatico.RespirarForaDagua(Animacoes movimentos) { movimentos.IrParaSuperficie.Begin(); }
void IAquatico.Mergulhar(Animacoes movimentos) { movimentos.Mergulhar.Begin(); }
void IOviparo.BotarOvo(Animacoes movimentos) { movimentos.BotarOvo.Begin(); }
public void Bicar(Animacoes movimentos) { movimentos.Bicar.Begin(); }
void IAquatico.Nadar(Key tecla, Animacoes movimentos) { movimentos.IrParaAgua.Begin(); }
void ITerrestre.Andar(Key tecla, Animacoes movimentos) { movimentos.IrParaSuperficie.Begin(); }
public abstract void Movimentar(Key tecla, Animacoes movimentos);
public override void Movimentar(Key tecla, Animacoes movimentos) { movimentos.IrParaSuperficie.Begin(); (this as ITerrestre).Andar(tecla, movimentos); }
public void Amamentar(Animacoes movimentos) { movimentos.Amamentar.Begin(); }
public void Comer(Animacoes movimentos) { movimentos.Comer.Begin(); }
public void Aquecer_Ao_Sol(Animacoes movimentos) { movimentos.AquecerAoSol.Begin(); }