Functions in sc_challenge.h
Related links
- SC_Challenge
The SC_Challenge class models all aspects of a Scoreloop challenge.
- SC_Challenge_Retain()
Increments the object's reference count.
- SC_Challenge_Release()
Decrements the object's reference count, and deletes the object if the counter reaches 0.
- SC_Challenge_GetStake()
Returns the challenge stake, which is the in-game currency that both the contender and contestant must pay in order to participate.
- SC_Challenge_GetContender()
Accessor that returns the challenge contender.
- SC_Challenge_GetContenderScore()
Accessor that returns the score achieved by the challenge contender.
- SC_Challenge_GetContestant()
Accessor that returns the challenge contestant.
- SC_Challenge_GetContestantScore()
Accessor that returns the score achieved by the challenge contestant.
- SC_Challenge_GetCreatedAt()
Accessor that returns the date on which the challenge was created.
- SC_Challenge_GetLevel()
Accessor that returns the initial level that a challenge was created with.
- SC_Challenge_GetCompletedAt()
Accessor that returns the date, on which the challenge was completed.
- SC_Challenge_GetLoser()
Accessor that returns the Scoreloop user who lost the challenge.
- SC_Challenge_GetMode()
Accessor that returns the mode of the challenge.
- SC_Challenge_GetPrize()
Accessor that returns the amount of in-game currency that is awarded to the winner of the challenge.
- SC_Challenge_GetWinner()
Accessor that returns the Scoreloop user who won the challenge.
- SC_Challenge_IsWinner()
Checks whether a given user is the winner of the challenge.
- SC_Challenge_IsAccepted()
Checks whether the challenge has been accepted.
- SC_Challenge_IsAssigned()
Checks whether the challenge has been assigned to any contender.
- SC_Challenge_IsCancelled()
Checks whether the challenge has been cancelled by the server.
- SC_Challenge_IsComplete()
Checks whether the challenge has been completed.
- SC_Challenge_IsCreated()
Checks whether the challenge is in an initial state.
- SC_Challenge_IsDone()
Checks whether the challenge is no longer acceptable.
- SC_Challenge_IsInvalid()
Checks whether the challenge is invalid.
- SC_Challenge_IsInvited()
Checks whether the challenge's contender invited a non-Scoreloop user to play when the challenge was created.
- SC_Challenge_IsOpen()
Checks whether the contender has played the challenge and left it open for any Scoreloop user to accept.
- SC_Challenge_IsRejected()
Checks whether the challenge has been rejected by a contestant.
- SC_Challenge_IsPlayableForUser()
Checks whether the challenge can be accepted by a designated user.
- SC_Challenge_GetContext()
Accessor that returns the context associated with the challenge.
- SC_Challenge_SetContext()
Sets the context for the challenge.