C# Класс Problem, thinksy_unity_plugin

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddGivenAnswerPart ( ProblemPart, newGivenAnswerPart ) : void

Sets the given answer. This can then be checked for correctness through CheckAnswer.

AnswersGivenSoFar ( ) : int

Returns the number of answers which have been given so far.

CheckAnswer ( ) : bool

Checks the Problem's given answer against its correct answer. DOES NOT report to the senseix server. Consider SubmitAnswer() if this is a final answer.

CheckAnswer ( Answer, answer ) : bool

Sets the given answer to the argument, then checks it. DOES NOT submit. Consider SubmitAnswer() if this is a final answer.

CountDistractors ( ) : int

Counts the number of distractors available for this problem.

CountProblemsAnsweredCorrectlySoFar ( ) : uint

Counts the problems answered correctly so far.

GetCategoryName ( ) : string

A category is a group of Thinksy questions which are formatted the same way. Gets the name of the category. This string is mostly meaningless, but can be compared with other strings and looked up on the Thinksy website for information about the category.

GetCategoryNumber ( ) : uint

Gets the category number. Higher number means more advanced categories.

GetCorrectAnswer ( ) : Answer,

Returns the correct answer to this Problem

GetCurrentCorrectAnswerPart ( ) : ProblemPart,

Gets the next correct answer part based on how many answer parts have been given so far.

GetDistractor ( ) : ProblemPart,

Gets one distractor. Distractors are wrong answers which can be presented as options to the player.

GetDistractors ( int howManyDistractors ) : ProblemPart[],

Gets distractors. These are wrong answers which can be presented as options to the player.

GetGivenAnswer ( ) : Answer,

Returns the answer set by SetGivenAnswer

GetGivenAnswerIDs ( ) : string[]

Gets the IDs of the given answers. Mostly for internal use. Only use this if you want a bunch of uuids.

GetLearningAction ( ) : LearningAction,

Returns the learning action associated with this problems. Learning actions are representations of actions the player can complete successfully or unsuccessfully. There are five types (sub-classes) of learning actions. The type of a learning action can be determined via learningAction.GetActionType()

GetQuestion ( ) : Question,

Returns the question to be answered.

GetQuestionHTML ( ) : string

Gets an HTML representation of this problem's question.

GetQuestionImage ( ) : Texture2D

Gets the question image. The same as GetQuestion ().GetImage ()

HasBeenSubmitted ( ) : bool
Problem ( Senseix newProtobufsProblemBuilder ) : System

Don't use this unless you know what you're doing- instead get a problem from SenseixPlugin.NextProblem().

SetGivenAnswer ( Answer, newGivenAnswer ) : void

Sets the given answer. This will then be reflected in CheckAnswer().

SubmitAnswer ( ) : bool

Submits the given answer. This will update communicate with the senseix server asynchronously and update your player's progress accordingly.

SubmitAnswer ( Answer, answer ) : bool

Sets the given answer, then submits. This will update communicate with the senseix server asynchronously and update your player's progress accordingly.

Описание методов

AddGivenAnswerPart() публичный Метод

Sets the given answer. This can then be checked for correctness through CheckAnswer.
public AddGivenAnswerPart ( ProblemPart, newGivenAnswerPart ) : void
newGivenAnswerPart ProblemPart,
Результат void

AnswersGivenSoFar() публичный Метод

Returns the number of answers which have been given so far.
public AnswersGivenSoFar ( ) : int
Результат int

CheckAnswer() публичный Метод

Checks the Problem's given answer against its correct answer. DOES NOT report to the senseix server. Consider SubmitAnswer() if this is a final answer.
public CheckAnswer ( ) : bool
Результат bool

CheckAnswer() публичный Метод

Sets the given answer to the argument, then checks it. DOES NOT submit. Consider SubmitAnswer() if this is a final answer.
public CheckAnswer ( Answer, answer ) : bool
answer Answer,
Результат bool

CountDistractors() публичный Метод

Counts the number of distractors available for this problem.
public CountDistractors ( ) : int
Результат int

CountProblemsAnsweredCorrectlySoFar() публичный статический Метод

Counts the problems answered correctly so far.
public static CountProblemsAnsweredCorrectlySoFar ( ) : uint
Результат uint

GetCategoryName() публичный Метод

A category is a group of Thinksy questions which are formatted the same way. Gets the name of the category. This string is mostly meaningless, but can be compared with other strings and looked up on the Thinksy website for information about the category.
public GetCategoryName ( ) : string
Результат string

GetCategoryNumber() публичный Метод

Gets the category number. Higher number means more advanced categories.
public GetCategoryNumber ( ) : uint
Результат uint

GetCorrectAnswer() публичный Метод

Returns the correct answer to this Problem
public GetCorrectAnswer ( ) : Answer,
Результат Answer,

GetCurrentCorrectAnswerPart() публичный Метод

Gets the next correct answer part based on how many answer parts have been given so far.
public GetCurrentCorrectAnswerPart ( ) : ProblemPart,
Результат ProblemPart,

GetDistractor() публичный Метод

Gets one distractor. Distractors are wrong answers which can be presented as options to the player.
public GetDistractor ( ) : ProblemPart,
Результат ProblemPart,

GetDistractors() публичный Метод

Gets distractors. These are wrong answers which can be presented as options to the player.
public GetDistractors ( int howManyDistractors ) : ProblemPart[],
howManyDistractors int How many random distractors to return.
Результат ProblemPart[],

GetGivenAnswer() публичный Метод

Returns the answer set by SetGivenAnswer
public GetGivenAnswer ( ) : Answer,
Результат Answer,

GetGivenAnswerIDs() публичный Метод

Gets the IDs of the given answers. Mostly for internal use. Only use this if you want a bunch of uuids.
public GetGivenAnswerIDs ( ) : string[]
Результат string[]

GetLearningAction() публичный Метод

Returns the learning action associated with this problems. Learning actions are representations of actions the player can complete successfully or unsuccessfully. There are five types (sub-classes) of learning actions. The type of a learning action can be determined via learningAction.GetActionType()
public GetLearningAction ( ) : LearningAction,
Результат LearningAction,

GetQuestion() публичный Метод

Returns the question to be answered.
public GetQuestion ( ) : Question,
Результат Question,

GetQuestionHTML() публичный Метод

Gets an HTML representation of this problem's question.
public GetQuestionHTML ( ) : string
Результат string

GetQuestionImage() публичный Метод

Gets the question image. The same as GetQuestion ().GetImage ()
public GetQuestionImage ( ) : Texture2D
Результат UnityEngine.Texture2D

HasBeenSubmitted() публичный Метод

public HasBeenSubmitted ( ) : bool
Результат bool

Problem() публичный Метод

Don't use this unless you know what you're doing- instead get a problem from SenseixPlugin.NextProblem().
public Problem ( Senseix newProtobufsProblemBuilder ) : System
newProtobufsProblemBuilder Senseix
Результат System

SetGivenAnswer() публичный Метод

Sets the given answer. This will then be reflected in CheckAnswer().
public SetGivenAnswer ( Answer, newGivenAnswer ) : void
newGivenAnswer Answer, New given answer.
Результат void

SubmitAnswer() публичный Метод

Submits the given answer. This will update communicate with the senseix server asynchronously and update your player's progress accordingly.
public SubmitAnswer ( ) : bool
Результат bool

SubmitAnswer() публичный Метод

Sets the given answer, then submits. This will update communicate with the senseix server asynchronously and update your player's progress accordingly.
public SubmitAnswer ( Answer, answer ) : bool
answer Answer,
Результат bool