mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-28 01:53:50 +00:00
December 2014 files
This commit is contained in:
parent
b691c43c44
commit
8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions
30
Minecraft.Client/Common/Tutorial/RideEntityTask.cpp
Normal file
30
Minecraft.Client/Common/Tutorial/RideEntityTask.cpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#include "stdafx.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Minecraft.h"
|
||||
#include "Tutorial.h"
|
||||
|
||||
#include "..\Minecraft.World\EntityHorse.h"
|
||||
|
||||
#include "RideEntityTask.h"
|
||||
|
||||
RideEntityTask::RideEntityTask(const int eType, Tutorial *tutorial, int descriptionId,
|
||||
bool enablePreCompletion, vector<TutorialConstraint *> *inConstraints, bool bShowMinimumTime, bool bAllowFade, bool bTaskReminders)
|
||||
: TutorialTask( tutorial, descriptionId, enablePreCompletion, inConstraints, bShowMinimumTime, bAllowFade, bTaskReminders ),
|
||||
m_eType( eType )
|
||||
{
|
||||
}
|
||||
|
||||
bool RideEntityTask::isCompleted()
|
||||
{
|
||||
return bIsCompleted;
|
||||
}
|
||||
|
||||
void RideEntityTask::onRideEntity(shared_ptr<Entity> entity)
|
||||
{
|
||||
if (entity->instanceof((eINSTANCEOF) m_eType))
|
||||
{
|
||||
bIsCompleted = true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue