//===========================================================================//
// File:	cnslmsgs.cpp                                                        //
// Project: MUNGA           Brick:	                       						  //
// Contents: Console messages						  										  //
//---------------------------------------------------------------------------//
//   Date    Who  Modification                                               //
// --------  ---  -----------------------------------------------------------//
// 06/02/95  ECH  Initial coding.                                            //
//	06/03/95  GAH	Added corresponding Macintosh message defintions.			  //
// 10/05/95	 GAH	Added ConsoleApplicationEndMissionMessage.					  //
//---------------------------------------------------------------------------//
// Copyright (C) 1994-1995, Virtual World Entertainment, Inc.                //
// All Rights reserved worldwide                                             //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL               //
//===========================================================================//

#include <rp.hpp>
#pragma hdrstop

#if !defined(RPCNSL_HPP)
#	include <rpcnsl.hpp>
#endif

//~~~~~~~~~~~~~~~~~~ ConsolePlayerVTVScoredMessage ~~~~~~~~~~~~~~~~~~~~~~
ConsolePlayerVTVScoredMessage::
	ConsolePlayerVTVScoredMessage(HostID player_host_ID):
		NetworkClient::Message(
			ConsolePlayerVTVScoredMessageID,
			sizeof(ConsolePlayerVTVScoredMessage)
		)
{
	playerHostID = player_host_ID;
}

//~~~~~~~~~~~~~~~~~~ ConsolePlayerVTVKilledMessage ~~~~~~~~~~~~~~~~~~~~~~
ConsolePlayerVTVKilledMessage::
	ConsolePlayerVTVKilledMessage(
		HostID player_host_ID,
		HostID killer_host_ID
	):
		NetworkClient::Message(
			ConsolePlayerVTVKilledMessageID,
			sizeof(ConsolePlayerVTVKilledMessage)
		)
{
	playerHostID = player_host_ID;
	killerHostID = killer_host_ID;
}

//~~~~~~~~~~~~~~~~~~ ConsolePlayerVTVBoosterMessage ~~~~~~~~~~~~~~~~~~~~~~
ConsolePlayerVTVBoosterMessage::
	ConsolePlayerVTVBoosterMessage(
		HostID player_host_ID,
		int booster_on
	):
		NetworkClient::Message(
			ConsolePlayerVTVBoosterMessageID,
			sizeof(ConsolePlayerVTVBoosterMessage)
		)
{
	playerHostID = player_host_ID;
	boosterOn = booster_on;
}

//~~~~~~~~~~~~~~~~~~ ConsolePlayerVTVScoreUpdateMessage ~~~~~~~~~~~~~~~~~~~~
ConsolePlayerVTVScoreUpdateMessage::
	ConsolePlayerVTVScoreUpdateMessage(
		HostID player_host_ID,
		int score
	):
		NetworkClient::Message(
			ConsolePlayerVTVScoreUpdateMessageID,
			sizeof(ConsolePlayerVTVScoreUpdateMessage)
		)
{
	playerHostID = player_host_ID;
	playerScore = score;
}

//~~~~~~~~~~~~~~~~~~ ConsolePlayerVTVDamagedMessage ~~~~~~~~~~~~~~~~~~~~~~
ConsolePlayerVTVDamagedMessage::
	ConsolePlayerVTVDamagedMessage(
		HostID player_host_ID,
		HostID damager_host_ID,
		int loss,
		int points_transfered
	):
		NetworkClient::Message(
			ConsolePlayerVTVDamagedMessageID,
			sizeof(ConsolePlayerVTVDamagedMessage)
		)
{
	playerHostID = player_host_ID;
	damagerHostID = damager_host_ID;
	damageLoss = loss;
   pointsTransfered = points_transfered;
}

//==============================================================================
