Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
55 lines
981 B
C++
55 lines
981 B
C++
//----------------------------------------------------------------------------
|
|
// File: simplestack.h
|
|
//
|
|
// Desc: see main.cpp
|
|
//
|
|
// Copyright (c) 1999-2001 Microsoft Corp. All rights reserved.
|
|
//-----------------------------------------------------------------------------
|
|
#ifndef _SIMPLE_STACK_H
|
|
#define _SIMPLE_STACK_H
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Name:
|
|
// Desc:
|
|
//-----------------------------------------------------------------------------
|
|
template< class Item , DWORD size > class SimpleStack
|
|
{
|
|
public:
|
|
SimpleStack()
|
|
{
|
|
m_dwCount = 0;
|
|
};
|
|
|
|
void Push( const Item& item )
|
|
{
|
|
m_Stack[m_dwCount++] = item;
|
|
};
|
|
|
|
Item Pop()
|
|
{
|
|
return m_Stack[--m_dwCount];
|
|
};
|
|
|
|
DWORD GetCount() const
|
|
{
|
|
return m_dwCount;
|
|
};
|
|
|
|
void Empty()
|
|
{
|
|
m_dwCount = 0;
|
|
};
|
|
|
|
private:
|
|
Item m_Stack[size];
|
|
DWORD m_dwCount;
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|