\section{TPProto::Modify\-Design Class Reference}
\label{classTPProto_1_1ModifyDesign}\index{TPProto::ModifyDesign@{TPProto::ModifyDesign}}
A \doxyref{Frame}{p.}{classTPProto_1_1Frame} to Modify Designs on the server.  


{\tt \#include $<$modifydesign.h$>$}

Inheritance diagram for TPProto::Modify\-Design::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classTPProto_1_1ModifyDesign}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Modify\-Design} ()\label{classTPProto_1_1ModifyDesign_7f8e2144313302196e1938eabd214a55}

\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$Modify\-Design} ()\label{classTPProto_1_1ModifyDesign_18bc1d721ed7f53c96d82e3e3204be2c}

\begin{CompactList}\small\item\em Required virtual destructor. \item\end{CompactList}\item 
void {\bf pack\-Buffer} ({\bf Buffer} $\ast$buf)
\begin{CompactList}\small\item\em Pack into a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. \item\end{CompactList}\item 
bool {\bf unpack\-Buffer} ({\bf Buffer} $\ast$buf)
\begin{CompactList}\small\item\em Unpack from a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}, fails. Unpacks the \doxyref{Modify\-Design}{p.}{classTPProto_1_1ModifyDesign} frame from the buffer. This method always fails and returns false, because the client cannot receive \doxyref{Modify\-Design}{p.}{classTPProto_1_1ModifyDesign} frames form the server. \item\end{CompactList}\item 
void {\bf set\-Design\-Id} (uint32\_\-t did)
\begin{CompactList}\small\item\em Sets the \doxyref{Design}{p.}{classTPProto_1_1Design} id. \item\end{CompactList}\item 
void {\bf set\-Categories} (std::set$<$ uint32\_\-t $>$cats)
\begin{CompactList}\small\item\em Sets the categories this \doxyref{Design}{p.}{classTPProto_1_1Design} is in. \item\end{CompactList}\item 
void {\bf set\-Name} (const std::string \&n)
\begin{CompactList}\small\item\em Sets the name of this \doxyref{Design}{p.}{classTPProto_1_1Design}. \item\end{CompactList}\item 
void {\bf set\-Description} (const std::string \&d)
\begin{CompactList}\small\item\em Sets the description of this \doxyref{Design}{p.}{classTPProto_1_1Design}. \item\end{CompactList}\item 
void {\bf set\-Player\-Owner} (uint32\_\-t player)
\begin{CompactList}\small\item\em Sets the \doxyref{Player}{p.}{classTPProto_1_1Player} that owns this \doxyref{Design}{p.}{classTPProto_1_1Design}. Should be the current player's id. \item\end{CompactList}\item 
void {\bf set\-Components} (std::map$<$ uint32\_\-t, uint32\_\-t $>$ comps)
\begin{CompactList}\small\item\em Sets the components that make up this design. \item\end{CompactList}\item 
void {\bf copy\-From\-Design} ({\bf Design} $\ast$d)
\begin{CompactList}\small\item\em Copies the contents of a design to add to the server. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
A \doxyref{Frame}{p.}{classTPProto_1_1Frame} to Modify Designs on the server. 



\subsection{Member Function Documentation}
\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!packBuffer@{packBuffer}}
\index{packBuffer@{packBuffer}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Modify\-Design::pack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [virtual]}}\label{classTPProto_1_1ModifyDesign_6a970961b7103df9c9df5c0995a9e07c}


Pack into a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. 

Packs this \doxyref{Modify\-Design}{p.}{classTPProto_1_1ModifyDesign} frame into the buffer. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]\doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to pack into. \end{description}
\end{Desc}


Implements {\bf TPProto::Frame} \doxyref{}{p.}{classTPProto_1_1Frame_67b50ee76e90385e56f04202ce1da67e}.\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!unpackBuffer@{unpackBuffer}}
\index{unpackBuffer@{unpackBuffer}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool TPProto::Modify\-Design::unpack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [virtual]}}\label{classTPProto_1_1ModifyDesign_3fd75d3ad9e0e3ebe70596f317404a29}


Unpack from a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}, fails. Unpacks the \doxyref{Modify\-Design}{p.}{classTPProto_1_1ModifyDesign} frame from the buffer. This method always fails and returns false, because the client cannot receive \doxyref{Modify\-Design}{p.}{classTPProto_1_1ModifyDesign} frames form the server. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]The \doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to unpack out of, ignored. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]False always. \end{Desc}


Implements {\bf TPProto::Frame} \doxyref{}{p.}{classTPProto_1_1Frame_fe220a4229f471a3cc6a143f7a27e321}.\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!setDesignId@{setDesignId}}
\index{setDesignId@{setDesignId}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Modify\-Design::set\-Design\-Id (uint32\_\-t {\em did})}\label{classTPProto_1_1ModifyDesign_50e16aea2d8ec8fa1446f1620b494f3f}


Sets the \doxyref{Design}{p.}{classTPProto_1_1Design} id. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em did}]The \doxyref{Design}{p.}{classTPProto_1_1Design} id number. \end{description}
\end{Desc}
\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!setCategories@{setCategories}}
\index{setCategories@{setCategories}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Modify\-Design::set\-Categories (std::set$<$ uint32\_\-t $>$ {\em cats})}\label{classTPProto_1_1ModifyDesign_076fccdd7dd91828623fe79476871462}


Sets the categories this \doxyref{Design}{p.}{classTPProto_1_1Design} is in. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cats}]The set of categories. \end{description}
\end{Desc}
\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!setName@{setName}}
\index{setName@{setName}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Modify\-Design::set\-Name (const std::string \& {\em n})}\label{classTPProto_1_1ModifyDesign_b3cf6bf07016e9fbeec79718f6b822c7}


Sets the name of this \doxyref{Design}{p.}{classTPProto_1_1Design}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em n}]The name of the \doxyref{Design}{p.}{classTPProto_1_1Design}. \end{description}
\end{Desc}
\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!setDescription@{setDescription}}
\index{setDescription@{setDescription}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Modify\-Design::set\-Description (const std::string \& {\em d})}\label{classTPProto_1_1ModifyDesign_f58bd7cbe4253d440ceddf55db8bee7a}


Sets the description of this \doxyref{Design}{p.}{classTPProto_1_1Design}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em d}]The description of the \doxyref{Design}{p.}{classTPProto_1_1Design}. \end{description}
\end{Desc}
\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!setPlayerOwner@{setPlayerOwner}}
\index{setPlayerOwner@{setPlayerOwner}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Modify\-Design::set\-Player\-Owner (uint32\_\-t {\em player})}\label{classTPProto_1_1ModifyDesign_6782fa4964b8ce5b9facd80982486855}


Sets the \doxyref{Player}{p.}{classTPProto_1_1Player} that owns this \doxyref{Design}{p.}{classTPProto_1_1Design}. Should be the current player's id. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em player}]The \doxyref{Player}{p.}{classTPProto_1_1Player} id of the owner. \end{description}
\end{Desc}
\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!setComponents@{setComponents}}
\index{setComponents@{setComponents}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Modify\-Design::set\-Components (std::map$<$ uint32\_\-t, uint32\_\-t $>$ {\em comps})}\label{classTPProto_1_1ModifyDesign_a4db2d7586cfad8f353cd90fd4a5f708}


Sets the components that make up this design. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em comps}]The map of component ids and the number in this design. \end{description}
\end{Desc}
\index{TPProto::ModifyDesign@{TPProto::Modify\-Design}!copyFromDesign@{copyFromDesign}}
\index{copyFromDesign@{copyFromDesign}!TPProto::ModifyDesign@{TPProto::Modify\-Design}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Modify\-Design::copy\-From\-Design ({\bf Design} $\ast$ {\em d})}\label{classTPProto_1_1ModifyDesign_9b4cbcc4e187445a7034cceab5f91949}


Copies the contents of a design to add to the server. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em d}]The design to copy from. \end{description}
\end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
tpproto/{\bf modifydesign.h}\item 
tpproto/modifydesign.cpp\end{CompactItemize}
